7 git-rev-tree - Provides the revision tree for one or more commits
12 'git-rev-tree' [--edges] [--cache <cache-file>] [^]<commit> [[^]<commit>]
16 Provides the revision tree for one or more commits.
21 Show edges (ie places where the marking changes between parent
24 --cache <cache-file>::
25 Use the specified file as a cache from a previous git-rev-list run
26 to speed things up. Note that this "cache" is totally different
27 concept from the directory index. Also this option is not
31 The commit id to trace (a leading caret means to ignore this
37 <date> <commit>:<flags> [<parent-commit>:<flags> ]\*
40 Date in 'seconds since epoch'
46 id of each parent commit object (>1 indicates a merge)
50 The flags are read as a bitmask representing each commit
51 provided on the commandline. eg: given the command:
53 $ git-rev-tree <com1> <com2> <com3>
59 means that <commit> is reachable from <com1>(1) and <com3>(4)
61 A revtree can get quite large. "git-rev-tree" will eventually allow
62 you to cache previous state so that you don't have to follow the whole
65 So the change difference between two commits is literally
67 git-rev-tree [commit-id1] > commit1-revtree
68 git-rev-tree [commit-id2] > commit2-revtree
69 join -t : commit1-revtree commit2-revtree > common-revisions
71 (this is also how to find the most common parent - you'd look at just
72 the head revisions - the ones that aren't referred to by other
73 revisions - in "common-revision", and figure out the best one. I
79 Written by Linus Torvalds <torvalds@osdl.org>
83 Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
87 Part of the gitlink:git[7] suite