Thread (15 messages) flat view 15 messages, 7 authors, 2016-06-15

Re: [PATCH] Proof-of-concept patch to remember what the detached HEAD was

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:47:37

Hi,

On Sat, 17 Oct 2009, Sean Estabrooks wrote:
On Fri, 16 Oct 2009 04:07:23 +0200 (CEST)
Johannes Schindelin [off-list ref] wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help