I have set Git's pager option to this
[pager]
log = diff-highlight
I downloaded the diff-highlight
script from Git's repository 3dbfe2b8
and placed it in my ~/bin
folder.
$ where git
C:\Program Files\Git\cmd\git.exe
$ where diff-highlight
C:\Users\andy\bin\diff-highlight
Running git log
results in the following error:
$ git log
Can't open diff-highlight: No such file or directory at C:\Users\andy\bin\diff-highlight line 36.
Segmentation fault
On the other hand, the following command runs just fine,
$ git log -p --color | diff-highlight | less -FRSX
This means diff-highlight
is available from $PATH
, but Git's config cannot find it.
My Git version is 2.12.0.windows.1
.
Recent guidance suggests putting the whole diff-highlight | less -FRSX
string into the pager.XXX
config.
This works just fine for me with a Make
d version of the current diff-highlight
script, although I only use it for pager.diff
and interactive.diffFilter
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With