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