Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git difftool ignores textconv driver

Tags:

git

git diff takes into account my textconv driver, but git difftool -d --textconv does not. Why? How to fix it?

My ~/.gitconfig contains among other settings:

[diff]
    tool = default-difftool
[difftool "default-difftool"]
    cmd = vim -f '+next' '+execute \"DirDiff\" argv(0) argv(1)' $LOCAL $REMOTE '+syntax off'
[diff "ipynb"]
    textconv = nbcatsrc

And my .gitattributes is:

*.ipynb diff=ipynb
like image 246
user744629 Avatar asked May 04 '26 16:05

user744629


1 Answers

It's true that git difftool ignores textconv. An explanation and workaround is found here:

Is git difftool on binaries possible? If so, how does one configure it?

like image 186
Joshua Goldberg Avatar answered May 06 '26 21:05

Joshua Goldberg