git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git add -p stops working when setting color.ui = always

From
Kevin Daudt <me@ikke.info>
Date
Oct 3, 2017, 19:36 UTC
Message-ID
<20171003193651.GB1667@alpha.vpn.ikke.info>
In-Reply-To
<CAB2yay8LLeNbqR4kkTwF1U+oarVDRxgkV4uGXuYcO8mAQmhWQQ@mail.gmail.com>
On Mon, Oct 02, 2017 at 01:38:17PM +0300, Tsvi Mostovicz wrote:
Show 14 quoted lines
> Hi,
> 
> When setting "color.ui = always" in the last few versions (not sure
> exactly when this started, but definitely exists in 2.14.1 and
> 2.14.2), git add -p stops working as expected. Instead of prompting
> the user, it skips through the prompts and doesn't allow selecting a
> hunk.
> 
> Don't know why I had color.ui = always set in my .gitconfig.
> 
> git version 2.14.2.666.gea220ee40
> 
> Thanks,
> 
Hello Tsvi,

This is being discussed just now[0]. Setting the value to auto should fix it (setting it to always does not make much sense in your config file).

Kevin.
[0}:https://public-inbox.org/git/20171003093157.gq7za2fwcqsouire@sigill.intra.peff.net/T/
Previous: Thomas Gummerer
Message 3 of 3 in “git add -p stops working when setting color.ui = always”
  1. Tsvi MostoviczOct 2, 2017
  2. Thomas GummererOct 2, 2017
  3. Kevin DaudtOct 3, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.