Re: [PATCH 1/2] add--interactive: ignore mode change in 'p'atch command
- From
Jeff King <peff@peff.net>
- Date
- Mar 27, 2008, 22:16 UTC
- Message-ID
- <20080327221616.GA28179@coredump.intra.peff.net>
- In-Reply-To
- <m3fxucuesq.fsf@localhost.localdomain>
On Thu, Mar 27, 2008 at 12:51:04PM -0700, Jakub Narebski wrote:
> Well, one hypothetical situation where having mode-change as 0th > pseudo-hunk in git-add--interactive would be useful is the situation > where you have changed file mode by accident, and do not want it > staged (included in the commit), at all.
FWIW, the diff "header" that "git add -p" gives you now does mention the mode change. But it's very easy to miss, since you are presumably looking for the hunk text. Asking is much nicer, IMHO.
-Peff