diff options
author | Jeff King <peff@peff.net> | 2017-07-07 05:07:34 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-09 10:00:48 -0700 |
commit | f35650dff6a4500e317803165b13cc087f48ee85 (patch) | |
tree | 06834131d7a81eeb7f7dbb3271f12676be1c34c0 /Documentation/SubmittingPatches | |
parent | log: clarify comment about reflog cycles (diff) | |
download | tgif-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 'Documentation/SubmittingPatches')
0 files changed, 0 insertions, 0 deletions