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
Nelson Elhage <nelhage@mit.edu>
Date
Sep 13, 2009, 03:54 UTC
Message-ID
<20090913035421.GP4275@mit.edu>
In-Reply-To
<20090913034031.GO4275@mit.edu>
On Sat, Sep 12, 2009 at 11:40:31PM -0400, Nelson Elhage wrote:
Show 6 quoted lines
> On Sat, Sep 12, 2009 at 07:44:29PM -0700, Junio C Hamano wrote:
> Can you point to an example of a git command supporting --dry-run, and
> using -n for something else? I personally would find that confusing,
> since -n is a common alias for dry-run both inside and outside of git
> (c.f. make, rsync, libtool). I guess patch(1) has that property, but
> none of your examples from git use -n to mean something else.

Oops, I missed 'commit' in your list, which I see (as of recently) has that property. In that case, though, --dry-run was added after an established -n option had been there for a long time; I think my general argument still stands for commands where that is not the case.

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