]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-rev-list.txt
l10n: fr v2.23.0 round 2
[thirdparty/git.git] / Documentation / git-rev-list.txt
CommitLineData
2cf565c5
DG
1git-rev-list(1)
2===============
2cf565c5
DG
3
4NAME
5----
6git-rev-list - Lists commit objects in reverse chronological order
7
8
9SYNOPSIS
10--------
353ce815 11[verse]
1c262bb7
JK
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 [ --min-parents=<number> ]
20 [ --no-min-parents ]
21 [ --max-parents=<number> ]
22 [ --no-max-parents ]
23 [ --first-parent ]
24 [ --remove-empty ]
25 [ --full-history ]
26 [ --not ]
27 [ --all ]
28 [ --branches[=<pattern>] ]
29 [ --tags[=<pattern>] ]
30 [ --remotes[=<pattern>] ]
31 [ --glob=<glob-pattern> ]
32 [ --ignore-missing ]
33 [ --stdin ]
34 [ --quiet ]
35 [ --topo-order ]
36 [ --parents ]
37 [ --timestamp ]
38 [ --left-right ]
39 [ --left-only ]
40 [ --right-only ]
41 [ --cherry-mark ]
42 [ --cherry-pick ]
43 [ --encoding=<encoding> ]
44 [ --(author|committer|grep)=<pattern> ]
45 [ --regexp-ignore-case | -i ]
46 [ --extended-regexp | -E ]
47 [ --fixed-strings | -F ]
4b1c5e1d 48 [ --date=<format>]
1c262bb7 49 [ [ --objects | --objects-edge | --objects-edge-aggressive ]
caf3827e 50 [ --unpacked ]
42357b4e 51 [ --object-names | --no-object-names ]
caf3827e
JH
52 [ --filter=<filter-spec> [ --filter-print-omitted ] ] ]
53 [ --missing=<missing-action> ]
1c262bb7
JK
54 [ --pretty | --header ]
55 [ --bisect ]
56 [ --bisect-vars ]
57 [ --bisect-all ]
58 [ --merge ]
59 [ --reverse ]
60 [ --walk-reflogs ]
61 [ --no-walk ] [ --do-walk ]
75d2e5a7 62 [ --count ]
1c262bb7 63 [ --use-bitmap-index ]
353ce815 64 <commit>... [ \-- <paths>... ]
2cf565c5
DG
65
66DESCRIPTION
67-----------
8c02eee2 68
1a3d834f
JH
69List commits that are reachable by following the `parent` links from the
70given commit(s), but exclude commits that are reachable from the one(s)
71given with a '{caret}' in front of them. The output is given in reverse
72chronological order by default.
2cf565c5 73
1a3d834f
JH
74You can think of this as a set operation. Commits given on the command
75line form a set of commits that are reachable from any of them, and then
76commits reachable from any of the ones given with '{caret}' in front are
77subtracted from that set. The remaining commits are what comes out in the
78command's output. Various other options and paths parameters can be used
79to further limit the result.
80
81Thus, the following command:
8c02eee2
JF
82
83-----------------------------------------------------------------------
b1889c36 84 $ git rev-list foo bar ^baz
8c02eee2
JF
85-----------------------------------------------------------------------
86
1a3d834f
JH
87means "list all the commits which are reachable from 'foo' or 'bar', but
88not from 'baz'".
adcd3512 89
8c02eee2
JF
90A special notation "'<commit1>'..'<commit2>'" can be used as a
91short-hand for "{caret}'<commit1>' '<commit2>'". For example, either of
92the following may be used interchangeably:
69e0c256 93
8c02eee2 94-----------------------------------------------------------------------
b1889c36
JN
95 $ git rev-list origin..HEAD
96 $ git rev-list HEAD ^origin
8c02eee2
JF
97-----------------------------------------------------------------------
98
99Another special notation is "'<commit1>'...'<commit2>'" which is useful
100for merges. The resulting set of commits is the symmetric difference
0d2c9d67
RS
101between the two operands. The following two commands are equivalent:
102
8c02eee2 103-----------------------------------------------------------------------
b1889c36
JN
104 $ git rev-list A B --not $(git merge-base --all A B)
105 $ git rev-list A...B
8c02eee2
JF
106-----------------------------------------------------------------------
107
2de9b711 108'rev-list' is a very essential Git command, since it
8c02eee2
JF
109provides the ability to build and traverse commit ancestry graphs. For
110this reason, it has a lot of different options that enables it to be
0b444cdb
TR
111used by commands as different as 'git bisect' and
112'git repack'.
69e0c256 113
df8baa42
JF
114OPTIONS
115-------
8c02eee2 116
fdcf39e5
MV
117:git-rev-list: 1
118include::rev-list-options.txt[]
331b51d2
JN
119
120include::pretty-formats.txt[]
121
2cf565c5
DG
122GIT
123---
9e1f0a85 124Part of the linkgit:git[1] suite