Re: Git diff --no-index --no-prefix output loses leading slash in paths

2018-06-18 Thread George King
This is a feature request; sorry for the confusion. My guess is that it's a corner case that was not considered due to the default prefixing. > On Jun 18, 2018, at 10:59 AM, Duy Nguyen wrote: > > On Mon, Jun 18, 2018 at 4:36 PM George King wrote: >> >> As of 2.17.1, `git diff --no-index

Re: Git diff --no-index --no-prefix output loses leading slash in paths

2018-06-18 Thread Duy Nguyen
On Mon, Jun 18, 2018 at 4:36 PM George King wrote: > > As of 2.17.1, `git diff --no-index --no-prefix relative/path /absolute/path` > produces the following: I checked as far back as v1.4.0 and git behaved the same way too. What version did it work for you? Or is this not a regression, rather a

Git diff --no-index --no-prefix output loses leading slash in paths

2018-06-18 Thread George King
As of 2.17.1, `git diff --no-index --no-prefix relative/path /absolute/path` produces the following: diff --git relative/path absolute/path index XXX..YYY ZZ --- relative/path +++ absolute/path The leading slash on `absolute/path` is lost. This is unfortunate; my use case is a diff