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

Re: [PATCH v2] doc: Add missing "-n" (dry-run) option to reflog man page

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 22, 2017, 03:28 UTC
Message-ID
<xmqqh8tnvvom.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<alpine.LFD.2.21.1711211038410.8568@DESKTOP-1GPMCEJ>
"Robert P. J. Day" <rpjday@crashcourse.ca> writes:
Show 6 quoted lines
> While the "git reflog" man page supports both "--dry-run" and "-n" for
> a dry run, the man page mentions only the former, not the latter.
>
> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
>
> ---

I have a suspicion that this was deliberately omitted in order to keep the lines in the description short and concise. Just adding 5-columns may appear not to hurt too much, but these things tend to accumulate, so...

Queued, so that I won't lose sight of it, but won't merge unless somebody else strongly feels about it.

Thanks.
Show 20 quoted lines
>
>   sorry, i accidentally chopped off the leading lines of the patch in
> the earlier post.
>
> diff --git a/Documentation/git-reflog.txt b/Documentation/git-reflog.txt
> index 44c736f1a..472a6808c 100644
> --- a/Documentation/git-reflog.txt
> +++ b/Documentation/git-reflog.txt
> @@ -20,9 +20,9 @@ depending on the subcommand:
>  'git reflog' ['show'] [log-options] [<ref>]
>  'git reflog expire' [--expire=<time>] [--expire-unreachable=<time>]
>  	[--rewrite] [--updateref] [--stale-fix]
> -	[--dry-run] [--verbose] [--all | <refs>...]
> +	[--dry-run | -n] [--verbose] [--all | <refs>...]
>  'git reflog delete' [--rewrite] [--updateref]
> -	[--dry-run] [--verbose] ref@\{specifier\}...
> +	[--dry-run | -n] [--verbose] ref@\{specifier\}...
>  'git reflog exists' <ref>
>
>  Reference logs, or "reflogs", record when the tips of branches and
Previous: Robert P. J. DayNext: Robert P. J. Day
Message 2 of 6 in “doc: Add missing "-n" (dry-run) option to reflog man page”
  1. doc: Add missing "-n" (dry-run) option to reflog man pageRobert P. J. Day, Nov 21, 2017
  2. Junio C HamanoNov 22, 2017
  3. Robert P. J. DayNov 22, 2017
  4. Junio C HamanoNov 22, 2017
  5. Robert P. J. DayNov 22, 2017
  6. Junio C HamanoNov 22, 2017

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.