2005-05-10 23:32:30 +02:00
|
|
|
git-rev-list(1)
|
|
|
|
===============
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
git-rev-list - Lists commit objects in reverse chronological order
|
|
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2005-12-31 18:37:15 +01:00
|
|
|
[verse]
|
2005-10-30 10:03:45 +01:00
|
|
|
'git-rev-list' [ \--max-count=number ]
|
2006-12-20 03:25:32 +01:00
|
|
|
[ \--skip=number ]
|
2005-12-31 18:37:15 +01:00
|
|
|
[ \--max-age=timestamp ]
|
|
|
|
[ \--min-age=timestamp ]
|
|
|
|
[ \--sparse ]
|
2009-07-13 17:11:44 +02:00
|
|
|
[ \--merges ]
|
2005-12-31 18:37:15 +01:00
|
|
|
[ \--no-merges ]
|
2007-12-27 01:04:05 +01:00
|
|
|
[ \--first-parent ]
|
2006-01-27 10:39:24 +01:00
|
|
|
[ \--remove-empty ]
|
2007-06-16 21:03:43 +02:00
|
|
|
[ \--full-history ]
|
2006-07-02 01:29:37 +02:00
|
|
|
[ \--not ]
|
2005-12-31 18:37:15 +01:00
|
|
|
[ \--all ]
|
2008-02-28 08:24:25 +01:00
|
|
|
[ \--branches ]
|
|
|
|
[ \--tags ]
|
|
|
|
[ \--remotes ]
|
2006-09-06 06:39:02 +02:00
|
|
|
[ \--stdin ]
|
2007-11-11 08:29:41 +01:00
|
|
|
[ \--quiet ]
|
2006-03-01 00:07:20 +01:00
|
|
|
[ \--topo-order ]
|
2005-12-31 18:37:15 +01:00
|
|
|
[ \--parents ]
|
2007-06-16 21:03:42 +02:00
|
|
|
[ \--timestamp ]
|
2007-04-05 16:53:07 +02:00
|
|
|
[ \--left-right ]
|
2007-04-11 00:28:32 +02:00
|
|
|
[ \--cherry-pick ]
|
2006-12-30 20:59:08 +01:00
|
|
|
[ \--encoding[=<encoding>] ]
|
2006-09-18 02:23:20 +02:00
|
|
|
[ \--(author|committer|grep)=<pattern> ]
|
2008-09-30 19:27:10 +02:00
|
|
|
[ \--regexp-ignore-case | -i ]
|
|
|
|
[ \--extended-regexp | -E ]
|
|
|
|
[ \--fixed-strings | -F ]
|
2007-07-14 08:48:03 +02:00
|
|
|
[ \--date={local|relative|default|iso|rfc|short} ]
|
2006-03-02 10:11:31 +01:00
|
|
|
[ [\--objects | \--objects-edge] [ \--unpacked ] ]
|
2005-12-31 18:37:15 +01:00
|
|
|
[ \--pretty | \--header ]
|
|
|
|
[ \--bisect ]
|
2007-03-22 06:15:54 +01:00
|
|
|
[ \--bisect-vars ]
|
2007-10-22 07:48:11 +02:00
|
|
|
[ \--bisect-all ]
|
2006-08-04 10:11:15 +02:00
|
|
|
[ \--merge ]
|
2007-01-20 23:04:02 +01:00
|
|
|
[ \--reverse ]
|
2007-01-20 09:51:41 +01:00
|
|
|
[ \--walk-reflogs ]
|
2007-07-24 01:38:40 +02:00
|
|
|
[ \--no-walk ] [ \--do-walk ]
|
2005-12-31 18:37:15 +01:00
|
|
|
<commit>... [ \-- <paths>... ]
|
2005-05-10 23:32:30 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2006-09-01 00:37:15 +02:00
|
|
|
|
2005-05-10 23:32:30 +02:00
|
|
|
Lists commit objects in reverse chronological order starting at the
|
2005-07-29 20:10:46 +02:00
|
|
|
given commit(s), taking ancestry relationship into account. This is
|
2005-05-10 23:32:30 +02:00
|
|
|
useful to produce human-readable log output.
|
|
|
|
|
2006-09-01 00:37:15 +02:00
|
|
|
Commits which are stated with a preceding '{caret}' cause listing to
|
|
|
|
stop at that point. Their parents are implied. Thus the following
|
|
|
|
command:
|
|
|
|
|
|
|
|
-----------------------------------------------------------------------
|
2008-06-30 08:09:04 +02:00
|
|
|
$ git rev-list foo bar ^baz
|
2006-09-01 00:37:15 +02:00
|
|
|
-----------------------------------------------------------------------
|
|
|
|
|
2005-07-29 20:10:46 +02:00
|
|
|
means "list all the commits which are included in 'foo' and 'bar', but
|
|
|
|
not in 'baz'".
|
|
|
|
|
2006-09-01 00:37:15 +02:00
|
|
|
A special notation "'<commit1>'..'<commit2>'" can be used as a
|
|
|
|
short-hand for "{caret}'<commit1>' '<commit2>'". For example, either of
|
|
|
|
the following may be used interchangeably:
|
2005-10-30 10:03:45 +01:00
|
|
|
|
2006-09-01 00:37:15 +02:00
|
|
|
-----------------------------------------------------------------------
|
2008-06-30 08:09:04 +02:00
|
|
|
$ git rev-list origin..HEAD
|
|
|
|
$ git rev-list HEAD ^origin
|
2006-09-01 00:37:15 +02:00
|
|
|
-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
Another special notation is "'<commit1>'...'<commit2>'" which is useful
|
|
|
|
for merges. The resulting set of commits is the symmetric difference
|
2006-07-02 01:29:37 +02:00
|
|
|
between the two operands. The following two commands are equivalent:
|
|
|
|
|
2006-09-01 00:37:15 +02:00
|
|
|
-----------------------------------------------------------------------
|
2008-06-30 08:09:04 +02:00
|
|
|
$ git rev-list A B --not $(git merge-base --all A B)
|
|
|
|
$ git rev-list A...B
|
2006-09-01 00:37:15 +02:00
|
|
|
-----------------------------------------------------------------------
|
|
|
|
|
2009-08-07 16:24:21 +02:00
|
|
|
'rev-list' is a very essential git command, since it
|
2006-09-01 00:37:15 +02:00
|
|
|
provides the ability to build and traverse commit ancestry graphs. For
|
|
|
|
this reason, it has a lot of different options that enables it to be
|
2008-07-03 07:41:41 +02:00
|
|
|
used by commands as different as 'git-bisect' and
|
|
|
|
'git-repack'.
|
2005-10-30 10:03:45 +01:00
|
|
|
|
2005-10-03 19:16:30 +02:00
|
|
|
OPTIONS
|
|
|
|
-------
|
2006-09-01 00:37:15 +02:00
|
|
|
|
2008-01-18 23:58:57 +01:00
|
|
|
:git-rev-list: 1
|
|
|
|
include::rev-list-options.txt[]
|
2007-05-14 01:25:45 +02:00
|
|
|
|
|
|
|
include::pretty-formats.txt[]
|
|
|
|
|
|
|
|
|
2005-05-10 23:32:30 +02:00
|
|
|
Author
|
|
|
|
------
|
|
|
|
Written by Linus Torvalds <torvalds@osdl.org>
|
|
|
|
|
|
|
|
Documentation
|
|
|
|
--------------
|
2006-09-01 00:37:15 +02:00
|
|
|
Documentation by David Greaves, Junio C Hamano, Jonas Fonseca
|
|
|
|
and the git-list <git@vger.kernel.org>.
|
2005-05-10 23:32:30 +02:00
|
|
|
|
|
|
|
GIT
|
|
|
|
---
|
2008-06-06 09:07:32 +02:00
|
|
|
Part of the linkgit:git[1] suite
|