Re: diff --color-words breaks spacing

2017-01-25 Thread Jeff King
On Tue, Jan 24, 2017 at 09:39:31AM -0800, Phil Hord wrote: > I noticed some weird spacing when comparing files with git diff > --color-words. The space before a colored word disappears sometimes. I _think_ this is working as designed, though it is a bit tricky (and it may be possible to make it

diff --color-words breaks spacing

2017-01-24 Thread Phil Hord
I noticed some weird spacing when comparing files with git diff --color-words. The space before a colored word disappears sometimes. $ git --version git version 2.11.0.485.g4e59582ff echo "FOO foo; foo = bar" > a echo "FOO foo = baz" > b git diff --color-words --no-index a b FOOfoo; foo = barbaz