Re: [RFC PATCH] git add -p: new "quit" command at the prompt.
- From
Wincent Colaiuta <win@wincent.com>
- Date
- Apr 13, 2009, 16:38 UTC
- Message-ID
- <80317CFC-6D87-4232-92EB-C5927F262E17@wincent.com>
- In-Reply-To
- <vpqfxgevy58.fsf@bauges.imag.fr>
El 12/4/2009, a las 14:45, Matthieu Moy escribió:
Show 16 quoted lines
> Junio C Hamano <gitster@pobox.com> writes: > >> You can say 'd' and then ^C, I think. > > Yes, you /can/, and that's what I'm doing right now in this situation. > But that's undocumented, not so intuitive (I found out I could do that > after trying ^C alone, which doesn't work, staged content is recorded > on disk at the end of the file only, not after each prompt), ... > > I thought the situation was common enough to deserve an explicit > command. The 'd' command is natural for "git add -i" + patch > subcommand, but for "git add -p", I found 'd' mostly useless, and I > really want a "quit" command. > > Sure, I can live without it, but if other people would like to have > it, please speak now ;-).
Yes, I'd like it too. I've been using ^C a lot, but I'd never noticed that changes weren't staged except at the end of each file. Thanks for bringing it up; you might have saved some people (including me) from being bitten by it at some point.
Wincent