Re: [PATCH] Proof-of-concept patch to remember what the detached HEAD was
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 26, 2009, 22:22 UTC
- Message-ID
- <alpine.DEB.1.00.0910262317430.4985@pacific.mpi-cbg.de>
- In-Reply-To
- <BLU0-SMTP840FB343954FC20ACA699CAEC30@phx.gbl>
Hi,
On Sat, 17 Oct 2009, Sean Estabrooks wrote:
Show 15 quoted lines
> On Fri, 16 Oct 2009 04:07:23 +0200 (CEST) > Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote: > > > Just recently, I had a user request (a very valid one, mind you) where > > the user does not want to provide a commit message, and wants to just > > commit all the current changes. In that particular case, it is very > > sensible to ask for these things. It is something utterly simple to > > ask for. Yet, it is utterly hard with Git, especially if I have to > > explain it. > > Hey Johannes, > > It's actually easy, but maybe hard to find: > > $ git commit --cleanup=verbatim -m ""
Of course that leaves out the main part. But it is simple once you know it (I did not): git add -A (we even went out of our way _not_ to name the long option --addremove, but --all -- it does not seem to be an expressive-enough option name to me, but what does my impression matter...)
So I retract my claim that it is utterly hard to do with Git (but not the rest).
Ciao, Dscho