# git add --patch displays diff and exits

3 messages from 2017-10-06 to 2017-10-06. Participants: Jake Bell, Stefan Beller.
Thread: https://gitlist.dev/t/46929

## Jake Bell, 2017-10-06 18:09

Subject: git add --patch displays diff and exits
Message-ID: <AE36B16D-0284-4AC0-BD5E-CD346036D69D@theunraveler.com>
URL: https://gitlist.dev/e/AE36B16D-0284-4AC0-BD5E-CD346036D69D%40theunraveler.com

```
Hello,

I'm not sure if this is the right place to report this issue, so apologies in advance if it isn't.

Recently, I upgraded from git 2.14.1 to 2.14.2, and noticed that "git add --patch" does not work properly. It just prints a diff of what's changed and exits, instead of presenting the dialogs to add changes to the index. I did some bisecting and tracked the bug down to this commit: https://github.com/git/git/commit/136c8c8b8fa39f1315713248473dececf20f8fe7.

Unfortunately, I'm not familiar with the codebase and don't know C well enough to debug the issue. Please let me know what additional information I can provide to help you all figure it out.
Thanks!

-- Jake


```

## Stefan Beller, 2017-10-06 18:13

Subject: Re: git add --patch displays diff and exits
Message-ID: <CAGZ79kZBKhg7buTDXZxG7mtr7gLE0ZmJkPFSd0xUCyTiuR2rng@mail.gmail.com>
URL: https://gitlist.dev/e/CAGZ79kZBKhg7buTDXZxG7mtr7gLE0ZmJkPFSd0xUCyTiuR2rng%40mail.gmail.com
In-Reply-To: <AE36B16D-0284-4AC0-BD5E-CD346036D69D@theunraveler.com>

```
On Fri, Oct 6, 2017 at 11:09 AM, Jake Bell <jake@theunraveler.com> wrote:
> Hello,
>
> I'm not sure if this is the right place to report this issue, so apologies in advance if it isn't.
>
> Recently, I upgraded from git 2.14.1 to 2.14.2, and noticed that "git add --patch" does not work properly. It just prints a diff of what's changed and exits, instead of presenting the dialogs to add changes to the index. I did some bisecting and tracked the bug down to this commit: https://github.com/git/git/commit/136c8c8b8fa39f1315713248473dececf20f8fe7.
>
> Unfortunately, I'm not familiar with the codebase and don't know C well enough to debug the issue. Please let me know what additional information I can provide to help you all figure it out.
> Thanks!

Please see
https://public-inbox.org/git/20171003093157.gq7za2fwcqsouire@sigill.intra.peff.net/T/
and replace the color=always by color=auto setting to see if it fixes
your problem.
(If it doesn't we're dealing with a new problem and not the one
reported more than 5 times already :)

Thanks,
Stefan



>
> -- Jake
>

```

## Jake Bell, 2017-10-06 18:13

Subject: Re: git add --patch displays diff and exits
Message-ID: <B0494C9A-EDFC-4069-BAD1-8E5AFDD08C8F@theunraveler.com>
URL: https://gitlist.dev/e/B0494C9A-EDFC-4069-BAD1-8E5AFDD08C8F%40theunraveler.com
In-Reply-To: <74010545-3186-4224-9A54-649284FB2933@theunraveler.com>

```
Sorry, please disregard---this is a duplicate of some other messages already sent to the list. Setting "color.ui = auto" fixed the issue for me.


-- Jake

> On Oct 6, 2017, at 1:13 PM, Jake Bell <jake@theunraveler.com> wrote:
> 
> Sorry, please disregard---this is a duplicate of some other messages already sent to the list. Setting "color.ui = auto" fixed the issue for me.
> 
> 
> -- Jake
> 
>> On Oct 6, 2017, at 1:09 PM, Jake Bell <jake@theunraveler.com> wrote:
>> 
>> Hello,
>> 
>> I'm not sure if this is the right place to report this issue, so apologies in advance if it isn't.
>> 
>> Recently, I upgraded from git 2.14.1 to 2.14.2, and noticed that "git add --patch" does not work properly. It just prints a diff of what's changed and exits, instead of presenting the dialogs to add changes to the index. I did some bisecting and tracked the bug down to this commit: https://github.com/git/git/commit/136c8c8b8fa39f1315713248473dececf20f8fe7.
>> 
>> Unfortunately, I'm not familiar with the codebase and don't know C well enough to debug the issue. Please let me know what additional information I can provide to help you all figure it out.
>> Thanks!
>> 
>> -- Jake
>> 
> 


```
