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

Re: [PATCH] rev-list: add --count to usage guide

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 1, 2015, 15:19 UTC
Message-ID
<xmqqd20bc3cj.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1435742651-15053-1-git-send-email-lawrencesiebert@gmail.com>
Lawrence Siebert <lawrencesiebert@gmail.com> writes:
Show 5 quoted lines
> --count should be mentioned in the usage guide, this updates code and
> documentation.
>
> Signed-off-by: Lawrence Siebert <lawrencesiebert@gmail.com>
> ---

Sounds good. While at it, perhaps add a mention (perhaps by creating a BUGS section at the end of the file) that --count with --use-bitmap-index ignores pathspec silently?

Show 28 quoted lines
>  Documentation/git-rev-list.txt | 1 +
>  builtin/rev-list.c             | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/Documentation/git-rev-list.txt b/Documentation/git-rev-list.txt
> index b10ea60..7b49c85 100644
> --- a/Documentation/git-rev-list.txt
> +++ b/Documentation/git-rev-list.txt
> @@ -56,6 +56,7 @@ SYNOPSIS
>  	     [ --reverse ]
>  	     [ --walk-reflogs ]
>  	     [ --no-walk ] [ --do-walk ]
> +	     [ --count ]
>  	     [ --use-bitmap-index ]
>  	     <commit>... [ \-- <paths>... ]
>  
> diff --git a/builtin/rev-list.c b/builtin/rev-list.c
> index ff84a82..ee9e872 100644
> --- a/builtin/rev-list.c
> +++ b/builtin/rev-list.c
> @@ -42,6 +42,7 @@ static const char rev_list_usage[] =
>  "    --abbrev=<n> | --no-abbrev\n"
>  "    --abbrev-commit\n"
>  "    --left-right\n"
> +"    --count\n"
>  "  special purpose:\n"
>  "    --bisect\n"
>  "    --bisect-vars\n"
Previous: Lawrence SiebertNext: Jeff King
Message 2 of 4 in “rev-list: add --count to usage guide”
  1. rev-list: add --count to usage guideLawrence Siebert, Jul 1, 2015
  2. Junio C HamanoJul 1, 2015
  3. rev-list: disable --use-bitmap-index when pruning commitsJeff King, Jul 1, 2015
  4. Junio C HamanoJul 1, 2015

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.