Skip to content

Commit 9fcacaa

Browse files
committed
Merge branch 'nd/log-n-doc' into maint
* nd/log-n-doc: doc: move rev-list option -<n> from git-log.txt to rev-list-options.txt
2 parents f9c2d2b + 70c2a25 commit 9fcacaa

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)