Skip to content

Commit 190767f

Browse files
Michael J Grubergitster
authored andcommitted
git-log.txt,rev-list-options.txt: -n/--max-count is commit limiting
They are applied after commit ordering and formatting options, in particular --reverse. Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 841d811 commit 190767f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Documentation/git-log.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ OPTIONS
2525

2626
-<n>::
2727
Limits the number of commits to show.
28+
Note that this is a commit limiting option, see below.
2829

2930
<since>..<until>::
3031
Show only commits between the named two commits. When

Documentation/rev-list-options.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ Commit Limiting
158158

159159
Besides specifying a range of commits that should be listed using the
160160
special notations explained in the description, additional commit
161-
limiting may be applied.
161+
limiting may be applied. Note that they are applied before commit
162+
ordering and formatting options, such as '--reverse'.
162163

163164
--
164165

0 commit comments

Comments
 (0)