• Linus Torvalds's avatar
    Add a 'source' decorator for commits · 0f3a290b
    Linus Torvalds authored
    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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    0f3a290b
builtin-rev-list.c 16.2 KB