Skip to content

Commit 70c2a25

Browse files
pcloudsgitster
authored andcommitted
doc: move rev-list option -<n> from git-log.txt to rev-list-options.txt
rev-list-options.txt is included in git-rev-list.txt. This makes sure rev-list man page also shows that, and at one place, together with equivalent options -n and --max-count. Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 785ee49 commit 70c2a25

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Documentation/git-log.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ each commit introduces are shown.
2424
OPTIONS
2525
-------
2626

27-
-<n>::
28-
Limits the number of commits to show.
29-
Note that this is a commit limiting option, see below.
30-
3127
<since>..<until>::
3228
Show only commits between the named two commits. When
3329
either <since> or <until> is omitted, it defaults to
@@ -137,6 +133,8 @@ Examples
137133
This makes sense only when following a strict policy of merging all
138134
topic branches when staying on a single integration branch.
139135

136+
`git log -3`::
137+
Limits the number of commits to show to 3.
140138

141139
Discussion
142140
----------

Documentation/rev-list-options.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ordering and formatting options, such as '--reverse'.
88

99
--
1010

11-
-n 'number'::
11+
-<number>::
12+
-n <number>::
1213
--max-count=<number>::
1314

1415
Limit the number of commits to output.

0 commit comments

Comments
 (0)