Skip to content

Commit 1ed6f2c

Browse files
Michael J Grubergitster
authored andcommitted
Documentation: gitrevisions
Create a new man page gitrevisions(7) which contains the revsions and ranges documentation but not more. This uses (per include) the same bits as the pertaining section of git-rev-parse(1). Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5a8f311 commit 1ed6f2c

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

Documentation/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MAN5_TXT=gitattributes.txt gitignore.txt gitmodules.txt githooks.txt \
66
gitrepository-layout.txt
77
MAN7_TXT=gitcli.txt gittutorial.txt gittutorial-2.txt \
88
gitcvs-migration.txt gitcore-tutorial.txt gitglossary.txt \
9-
gitdiffcore.txt gitworkflows.txt
9+
gitdiffcore.txt gitrevisions.txt gitworkflows.txt
1010

1111
MAN_TXT = $(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT)
1212
MAN_XML=$(patsubst %.txt,%.xml,$(MAN_TXT))

Documentation/gitrevisions.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
gitrevisions(7)
2+
================
3+
4+
NAME
5+
----
6+
gitrevisions - specifying revisions and ranges for git
7+
8+
SYNOPSIS
9+
--------
10+
gitrevisions
11+
12+
13+
DESCRIPTION
14+
-----------
15+
16+
Many Git commands take revision parameters as arguments. Depending on
17+
the command, they denote a specific commit or, for commands which
18+
walk the revision graph (such as linkgit:git-log[1]), all commits which can
19+
be reached from that commit. In the latter case one can also specify a
20+
range of revisions explicitly.
21+
22+
In addition, some Git commands (such as linkgit:git-show[1]) also take
23+
revision parameters which denote other objects than commits, e.g. blobs
24+
("files") or trees ("directories of files").
25+
26+
include::revisions.txt[]
27+
28+
29+
SEE ALSO
30+
--------
31+
linkgit:git-rev-parse[1]
32+
33+
GIT
34+
---
35+
Part of the linkgit:git[1] suite

0 commit comments

Comments
 (0)