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
.
/usr/share/doc/git/contrib/diff-highlight/diff-highlight
from Linux side to a Windows directory in PATH and it worked okay. my git version: 2.33.1.windows.1 – Bronchi