aboutsummaryrefslogtreecommitdiff
path: root/reflog-walk.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-07-07 05:07:34 -0400
committerJunio C Hamano <gitster@pobox.com>2017-07-09 10:00:48 -0700
commitf35650dff6a4500e317803165b13cc087f48ee85 (patch)
tree06834131d7a81eeb7f7dbb3271f12676be1c34c0 /reflog-walk.c
parent822601e8303270aebed493b11e0988a75f2646b8 (diff)
downloadgit-f35650dff6a4500e317803165b13cc087f48ee85.tar.gz
git-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 'reflog-walk.c')
0 files changed, 0 insertions, 0 deletions