git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] git-log.txt,rev-list-options.txt: -n/--max-count is commit limiting

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Mar 8, 2011, 08:31 UTC
Message-ID
<4c0ad5a9af1d18e59a7e820349a531f220cbf776.1299572814.git.git@drmicha.warpmail.net>
In-Reply-To
<4D75E92C.1090506@drmicha.warpmail.net>

and therefore applied after commit ordering and formatting options, in particular --reverse. Say so.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
 Documentation/git-log.txt          |    1 +
 Documentation/rev-list-options.txt |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
index ff41784..48c1715 100644
--- a/Documentation/git-log.txt
+++ b/Documentation/git-log.txt
@@ -25,6 +25,7 @@ OPTIONS
 
 -<n>::
 	Limits the number of commits to show.
+	Note that this is a commit limiting option, see below.
 
 <since>..<until>::
 	Show only commits between the named two commits.  When
diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt
index 76add13..adcafa0 100644
--- a/Documentation/rev-list-options.txt
+++ b/Documentation/rev-list-options.txt
@@ -158,7 +158,8 @@ Commit Limiting
 
 Besides specifying a range of commits that should be listed using the
 special notations explained in the description, additional commit
-limiting may be applied.
+limiting may be applied. Note that they are applied before commit
+ordering and formatting options, such as '--reverse'.
 
 --
 
-- 
1.7.4.1.299.g567d7.dirty
Previous: Michael J GruberNext: Junio C Hamano
Message 9 of 14 in “--max-count useless with git-rev-list's --reverse”
  1. Ævar Arnfjörð BjarmasonMar 7, 2011
  2. Shawn PearceMar 7, 2011
  3. Jay SoffianMar 8, 2011
  4. Michael J GruberMar 8, 2011
  5. Michael J GruberMar 8, 2011
  6. 1/3 rev-list-options.txt: typo fixMichael J Gruber, Mar 8, 2011
  7. Junio C HamanoMar 8, 2011
  8. Michael J GruberMar 9, 2011
  9. 2/3 git-log.txt,rev-list-options.txt: -n/--max-count is commit limitingMichael J Gruber, Mar 8, 2011
  10. Junio C HamanoMar 8, 2011
  11. Michael J GruberMar 9, 2011
  12. 3/3 git-log.txt,rev-list-options.txt: put option blocks in proper orderMichael J Gruber, Mar 8, 2011
  13. Junio C HamanoMar 9, 2011
  14. Michael J GruberMar 10, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.