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

Re: [PATCH] git-push: Accept -n as a synonym for --dry-run.

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 13, 2009, 05:18 UTC
Message-ID
<7vhbv72zjf.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20090913034031.GO4275@mit.edu>
Nelson Elhage <nelhage@MIT.EDU> writes:
Show 6 quoted lines
>> commit, push (as you identified), reflog, and send-email have --dry-run
>> but -n is not a synonym for it.  Some of them even use -n as a shorthand
>> for a more often used option than --dry-run.
>
> Can you point to an example of a git command supporting --dry-run, and
> using -n for something else?

Doesn't commit -n stand for no-verify? I think that is how it is documented.

> In fact, reflog already supports '-n' to mean dry-run,
Huh?  "git reflog -n 4" is for show-four-entries-from-the-top.
Previous: Nelson Elhage
Message 8 of 8 in “git-push: Accept -n as a synonym for --dry-run.”
  1. git-push: Accept -n as a synonym for --dry-run.Nelson Elhage, Sep 13, 2009
  2. Junio C HamanoSep 13, 2009
  3. Nelson ElhageSep 13, 2009
  4. Nelson ElhageSep 13, 2009
  5. Junio C HamanoSep 13, 2009
  6. Junio C HamanoSep 13, 2009
  7. Nelson ElhageSep 13, 2009
  8. Junio C HamanoSep 13, 2009

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.