Re: Unable to use --patch with git add
- From
Jeff King <peff@peff.net>
- Date
- Oct 11, 2017, 18:00 UTC
- Message-ID
- <20171011180015.mqn5xkj5z4yjdrhm@sigill.intra.peff.net>
- In-Reply-To
- <CAEBs8jKAsb3B-6WJ=ptL2AsGvDRFVPYLCsztpdTN6KCBLOo1XA@mail.gmail.com>
On Wed, Oct 11, 2017 at 11:25:52PM +0530, Ayush Goel wrote:
Show 8 quoted lines
> On Wed, Oct 11, 2017 at 11:19 PM, Santiago Torres <santiago@nyu.edu> wrote: > > It'd be helpful to know: > > > > - What did you do? > > I have recently updated to git version 2.14.2. The problem started > happening after that. > Made changes to a file. Tried `git add -p`.
This is a known issue in v2.14.2 with having "color.ui" set to "always" in your config.
There's a fix in v2.15.0-rc1. You can either upgrade to that, or as a workaround set "color.ui" to "auto" (or remove it completely from your config, as "auto" is the default).
-Peff