summaryrefslogtreecommitdiff
path: root/include/git2/annotated_commit.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-03-13 18:28:07 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-03-13 18:28:07 +0100
commitdccf59ad385489eef31a2521440bc07e7cc98a5b (patch)
tree224d5cc75e224f05b54892ca6fe2b4c9d260fb08 /include/git2/annotated_commit.h
parenta34692c41921c97fd75f6f19fc1549f8abe38c1e (diff)
downloadlibgit2-dccf59ad385489eef31a2521440bc07e7cc98a5b.tar.gz
indexer: don't worry about duplicate objects
If a packfile includes duplicate objects, we can choose to use the secon copy instead of the first by using the same logic as if it were the first. Change the error condition from 0 to -1, which indicates a bad resize, and set the OOM message in that case. This does mean we will leak the first copy of the object. We can deal with that later, but making fetches work is more important.
Diffstat (limited to 'include/git2/annotated_commit.h')
0 files changed, 0 insertions, 0 deletions