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

Re: [PATCH] doc: move rev-list option -<n> from git-log.txt to rev-list-options.txt

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Sep 7, 2012, 08:50 UTC
Message-ID
<5049B54F.7020301@drmicha.warpmail.net>
In-Reply-To
<1346941683-24832-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy venit, vidit, dixit 06.09.2012 16:28:
Show 9 quoted lines
> 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 <pclouds@gmail.com>
> ---
>  Documentation/git-log.txt          | 6 ++----
>  Documentation/rev-list-options.txt | 3 ++-
>  2 tập tin đã bị thay đổi, 4 được thêm vào(+), 5 bị xóa(-)

That is one reason why "core.local=C" (repo specific) and "git -c core.locale=C" (can be used in an alias) would be useful ;)

Show 40 quoted lines
> 
> diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
> index 1f90620..585dac4 100644
> --- a/Documentation/git-log.txt
> +++ b/Documentation/git-log.txt
> @@ -24,10 +24,6 @@ each commit introduces are shown.
>  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
>  	either <since> or <until> is omitted, it defaults to
> @@ -137,6 +133,8 @@ Examples
>  	This makes sense only when following a strict policy of merging all
>  	topic branches when staying on a single integration branch.
>  
> +`git log -3`::
> +	Limits the number of commits to show to 3.
>  
>  Discussion
>  ----------
> diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt
> index def1340..1b15ea9 100644
> --- a/Documentation/rev-list-options.txt
> +++ b/Documentation/rev-list-options.txt
> @@ -8,7 +8,8 @@ ordering and formatting options, such as '--reverse'.
>  
>  --
>  
> --n 'number'::
> +-<number>::
> +-n <number>::
>  --max-count=<number>::
>  
>  	Limit the number of commits to output.
> 
This looks OK.

I noticed though that the man pages of git-log and git-rev-list still look more different than they would need to, e.g. regarding the way limitting by paths is explained more prominently with git-log. But that may just be being more user friendly for git-log's man page than for git rev-list's, which is OK.

Michael
Previous: Nguyễn Thái Ngọc DuyNext: Junio C Hamano
Message 2 of 4 in “doc: move rev-list option -<n> from git-log.txt to rev-list-options.txt”
  1. doc: move rev-list option -<n> from git-log.txt to rev-list-options.txtNguyễn Thái Ngọc Duy, Sep 6, 2012
  2. Michael J GruberSep 7, 2012
  3. Junio C HamanoSep 7, 2012
  4. Nguyen Thai Ngoc DuySep 8, 2012

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.