Re: [PATCH] Add --show-touched option to show "diff --git" line when contents are unchanged
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 5, 2007, 19:45 UTC
- Message-ID
- <Pine.LNX.4.64.0708052044570.14781@racer.site>
- In-Reply-To
- <vpqr6mhahtx.fsf@bauges.imag.fr>
Hi,
On Sun, 5 Aug 2007, Matthieu Moy wrote:
Show 16 quoted lines
> Junio C Hamano <gitster@pobox.com> writes: > > > Matthieu Moy <Matthieu.Moy@imag.fr> writes: > > > >>> "git-status $args" on the other hand is a preview of "what would > >>> happen if I say 'git-commit $args'", and in order to compute > >>> that, you would fundamentally need to be able to write into the > >>> object store. In a special case of giving empty $args it can be > >>> read-only. > >> > >> Can you give an example where it _could_ not be read-only? > > > > Think of what "git commit -a" would have to do. > > I don't know whether it was a typo, but we're not talking about > "commit", but "status".
No typo. "git status" is literally "git commit --dry-run". Why? Because people expected it to be called "git status".
And even if I think about it over and over again, it makes sense.
Ciao, Dscho