Add a 'source' decorator for commits
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 27 Oct 2008 19:51:59 +0000 (12:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Nov 2008 08:08:03 +0000 (00:08 -0800)
commit0f3a290b89b89bb5375cf5019b067e4a99f02620
treef1d7a3f846476cb7e027637e2c0826f525ec7637
parent9f8f132621faedd250fded3e260402623da91a6f
Add a 'source' decorator for commits

We already support decorating commits by tags or branches that point to
them, but especially when we are looking at multiple branches together,
we sometimes want to see _how_ we reached a particular commit.

We can abuse the '->util' field in the commit to keep track of that as
we walk the commit lists, and get a reasonably useful view into which
branch or tag first reaches that commit.

Of course, if the commit is reachable through multiple sources (which is
common), our particular choice of "first" reachable is entirely random
and depends on the particular path we happened to follow.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-log.c
builtin-rev-list.c
log-tree.c
log-tree.h
revision.c
revision.h