Re: Incorrect behavior from git checkout --patch

2019-08-11 Thread Phillip Wood
Hi Dave On 11/08/2019 10:54, Phillip Wood wrote: Hi Dave Thanks for the bug report. I've tried to reproduce it on the latest master, version 2.22.0 and 2.20.1 and am unable to do so. Doh, I was doing 'git checkout -p HEAD', when I checkout from the index I can reproduce the bug and it is fi

Re: Incorrect behavior from git checkout --patch

2019-08-11 Thread Phillip Wood
Hi Dave Thanks for the bug report. I've tried to reproduce it on the latest master, version 2.22.0 and 2.20.1 and am unable to do so. I thought it might be related to a bug I recently fixed[1] but it does not appear to be. I've appended the files I used below just in case I made a mistake tra

Incorrect behavior from git checkout --patch

2019-08-10 Thread Dave Kaminski
I am observing git checkout --patch making changes to the wrong lines of a file. This is with a clean install of git version 2.20.1 on a debian docker container (image tag 10.0 which is also "latest" as of this writing). With a diff that looks like the following: diff --git a/file.txt b/file.txt