OSDN Git Service

log: clarify comment about reflog cycles
authorJeff King <peff@peff.net>
Sun, 9 Jul 2017 10:13:51 +0000 (06:13 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Jul 2017 17:00:05 +0000 (10:00 -0700)
commit822601e8303270aebed493b11e0988a75f2646b8
treeeaca450db93d497a5a0609c5ddf3f045e4710520
parent82fd0f4a4b2c394ddba279eab7072fe87b750d2e
log: clarify comment about reflog cycles

When we're walking reflogs, we leave the commit buffer and
parents in place. A comment explains that this is due to
"cycles". But the interesting thing is the unsaid
implication: that the cycles (plus our clearing of the SEEN
flag) will cause us to show commits multiple times. Let's
spell it out.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c