summaryrefslogtreecommitdiff
path: root/tests/clone/empty.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-03-07 15:17:08 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-03-07 16:03:10 +0100
commit7c1ee212b7fa1568a12a0a656b02cae01cb1cb6c (patch)
tree5752594e6c16fe5a0df52785b7a97c1f6736f1bf /tests/clone/empty.c
parent5187b609ba203b5a62e3e54c1a323cc0647deff9 (diff)
downloadlibgit2-7c1ee212b7fa1568a12a0a656b02cae01cb1cb6c.tar.gz
commit: simplify and correct refcounting in nth_gen_ancestor
We can make use of git_object_dup to use refcounting instead of pointer comparison to make sure we don't free the caller's object. This also lets us simplify the case for '~0' which is now just an assignment instead of looking up the object we have at hand.
Diffstat (limited to 'tests/clone/empty.c')
0 files changed, 0 insertions, 0 deletions