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:23 UTC
Message-ID
<7vd45v2za4.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20090913035421.GP4275@mit.edu>
Nelson Elhage <nelhage@MIT.EDU> writes:
> ... I think my
> general argument still stands for commands where that is not the case.
Cool down.

It is a mere subset of what I already said, so you are not arguing against me at all.

    So the justification should be more like "push does not have any other
    option that deserves a short-and-sweet -n better, it will not have any
    such option in the future, and --dry-run is very often used that it
    deserves to use -n as its short-hand."

and I already said I tend to agree with the first two points. Indeed the first point is an absolute truth (the statement is about the current state).

To answer the second point you need to look into the future, but I do not foresee us adding a very useful option to the command whose usefulness far outweigh that of dry-run and whose name begins with 'n' to want to use it as the short-hand. In such a case, it is likely that we would try very hard to find a name that does not begin with 'n' to avoid the issue.

Previous: Nelson ElhageNext: Junio C Hamano
Message 5 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.