daxim has asked for the wisdom of the Perl Monks concerning the following question:

This is a f'up to http://blogs.perl.org/users/dean/2019/06/diff-so-fancy-v126.html.

I have in my ~/.gitconfig:

[pager] log = diff-highlight | diff-so-fancy | less show = diff-highlight | diff-so-fancy | less diff = diff-highlight | diff-so-fancy | less

and it works fine, last changed in 2016-02. Any time I run git log/show/diff (also from git aliases), the diff output will be filtered through the pipeline above (screenshot).

I remembered ccdiff from a yapc and wanted to try it.

The naive approach of changing it to show = ccdiff | less doesn't work, this just shows the usage. Before I commit to a lot of trial and error, does anymonk have a working set-up for ccdiff as a filter?

Replies are listed 'Best First'.
Re: How do I set up ccdiff as a diff-so-fancy work-alike?
by Tux (Canon) on Jul 02, 2019 at 11:42 UTC

    Did you read the docs on this subject?

    Is there anything specific I am missing?


    Enjoy, Have FUN! H.Merijn
      I don't want to run git difftool, I want run git show/diff.

        That is what the docs show. After those commands, you can do git ccdiff instead of git diff. Otherwise I do not understand your question.


        Enjoy, Have FUN! H.Merijn