summaryrefslogtreecommitdiff
path: root/blob.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-07-07 05:07:34 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-07-09 10:00:48 -0700
commitf35650dff6a4500e317803165b13cc087f48ee85 (patch)
tree06834131d7a81eeb7f7dbb3271f12676be1c34c0 /blob.c
parentlog: clarify comment about reflog cycles (diff)
downloadtgif-f35650dff6a4500e317803165b13cc087f48ee85.tar.xz
log: do not free parents when walking reflog
When we're doing a reflog walk (instead of walking the actual parent pointers), we may see commits multiple times. For this reason, we hold on to the commit buffer for each commit rather than freeing it after we've showed the commit. We should do the same for the parent list. Right now this is just a minor optimization. But once we refactor how reflog walks are performed, keeping the parents will avoid confusing us the second time we see the commit. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blob.c')
0 files changed, 0 insertions, 0 deletions