gitweb: Create links leading to 'blame_incremental' using JavaScript
[alt-git.git] / Documentation / git-rev-list.txt
bloba765cfa4d208ed42a9539c3f26192b2ba4ec05a5
1 git-rev-list(1)
2 ===============
4 NAME
5 ----
6 git-rev-list - Lists commit objects in reverse chronological order
9 SYNOPSIS
10 --------
11 [verse]
12 'git-rev-list' [ \--max-count=number ]
13              [ \--skip=number ]
14              [ \--max-age=timestamp ]
15              [ \--min-age=timestamp ]
16              [ \--sparse ]
17              [ \--merges ]
18              [ \--no-merges ]
19              [ \--first-parent ]
20              [ \--remove-empty ]
21              [ \--full-history ]
22              [ \--not ]
23              [ \--all ]
24              [ \--branches ]
25              [ \--tags ]
26              [ \--remotes ]
27              [ \--stdin ]
28              [ \--quiet ]
29              [ \--topo-order ]
30              [ \--parents ]
31              [ \--timestamp ]
32              [ \--left-right ]
33              [ \--cherry-pick ]
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 ]
42              [ \--bisect ]
43              [ \--bisect-vars ]
44              [ \--bisect-all ]
45              [ \--merge ]
46              [ \--reverse ]
47              [ \--walk-reflogs ]
48              [ \--no-walk ] [ \--do-walk ]
49              <commit>... [ \-- <paths>... ]
51 DESCRIPTION
52 -----------
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
60 command:
62 -----------------------------------------------------------------------
63         $ git rev-list foo bar ^baz
64 -----------------------------------------------------------------------
66 means "list all the commits which are included in 'foo' and 'bar', but
67 not in 'baz'".
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)
84         $ git rev-list 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
91 'git-repack'.
93 OPTIONS
94 -------
96 :git-rev-list: 1
97 include::rev-list-options.txt[]
99 include::pretty-formats.txt[]
102 Author
103 ------
104 Written by Linus Torvalds <torvalds@osdl.org>
106 Documentation
107 --------------
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