Re: [PATCH] git-diff: Add --staged as a synonym for --cached.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 29, 2008, 17:06 UTC
- Message-ID
- <alpine.DEB.1.00.0810291804400.22125@pacific.mpi-cbg.de.mpi-cbg.de>
- In-Reply-To
- <ee77f5c20810290950k6d7acfcbt90b6280c290bd532@mail.gmail.com>
Hi,
On Wed, 29 Oct 2008, David Symonds wrote:
Show 9 quoted lines
> On Wed, Oct 29, 2008 at 9:42 AM, Jeff King <peff@peff.net> wrote: > > > Hmm. I wonder if it would make it more sense to make the "official" > > name --staged, and leave --cached forever as a synonym. If the goal is > > giving sane names to end users, then we should probably advertise the > > sane ones. > > I agree. If there's some consensus, I can make that shift, keeping > --cached as a backward-compatibility synonym.
Yes, I would like that, too.
However, note that we have to hash out what to do about the convention that --cached traditionally means that only the staging area (formerly known as "the index") is affected, while --index means that the command touches the working directory, too.
Ciao, Dscho