6 git-rev-list - Lists commit objects in reverse chronological order
12 'git-rev-list' [ \--max-count=number ]
14 [ \--max-age=timestamp ]
15 [ \--min-age=timestamp ]
34 [ \--encoding[=<encoding>] ]
35 [ \--(author|committer|grep)=<pattern> ]
36 [ \--regexp-ignore-case | -i ]
37 [ \--extended-regexp | -E ]
38 [ \--fixed-strings | -F ]
39 [ \--date={local|relative|default|iso|rfc|short} ]
40 [ [\--objects | \--objects-edge] [ \--unpacked ] ]
41 [ \--pretty | \--header ]
48 [ \--no-walk ] [ \--do-walk ]
49 <commit>... [ \-- <paths>... ]
54 Lists commit objects in reverse chronological order starting at the
55 given commit(s), taking ancestry relationship into account. This is
56 useful to produce human-readable log output.
58 Commits which are stated with a preceding '{caret}' cause listing to
59 stop at that point. Their parents are implied. Thus the following
62 -----------------------------------------------------------------------
63 $ git rev-list foo bar ^baz
64 -----------------------------------------------------------------------
66 means "list all the commits which are included in 'foo' and 'bar', but
69 A special notation "'<commit1>'..'<commit2>'" can be used as a
70 short-hand for "{caret}'<commit1>' '<commit2>'". For example, either of
71 the following may be used interchangeably:
73 -----------------------------------------------------------------------
74 $ git rev-list origin..HEAD
75 $ git rev-list HEAD ^origin
76 -----------------------------------------------------------------------
78 Another special notation is "'<commit1>'...'<commit2>'" which is useful
79 for merges. The resulting set of commits is the symmetric difference
80 between the two operands. The following two commands are equivalent:
82 -----------------------------------------------------------------------
83 $ git rev-list A B --not $(git merge-base --all A B)
85 -----------------------------------------------------------------------
87 'git-rev-list' is a very essential git program, since it
88 provides the ability to build and traverse commit ancestry graphs. For
89 this reason, it has a lot of different options that enables it to be
90 used by commands as different as 'git-bisect' and
97 include::rev-list-options.txt[]
99 include::pretty-formats.txt[]
104 Written by Linus Torvalds <torvalds@osdl.org>
108 Documentation by David Greaves, Junio C Hamano, Jonas Fonseca
109 and the git-list <git@vger.kernel.org>.
113 Part of the linkgit:git[1] suite