Commits


return existing data if existing object id is added to set


expose number of elements in an object id set


use macro instead of literal ".pack"


use macro instead of literal ".idx"


use strlcpy instead of strncpy


remove unnecessary forward declaration


replace unnecessary use of FOREACH_SAFE with FOREACH


fail test gracefully instead of aborting


check for NULL error return in idset test


tests for object id sets


add an object id set data structure


use local variable to save screen estate in got_packidx_open()


wrap overlong lines


turns out on-disk path of pack file may not match its hash Fixes reading a repo with a pack idx and file dated June 2011, where the filename does not contain the actual packfile SHA1.


fix bogus free() in error path of cache_pack()