paulfitz / daff

align and compare tables
https://paulfitz.github.io/daff
MIT License
790 stars 68 forks source link

Is it possible to set daff git diff output format? #161

Open aborruso opened 3 years ago

aborruso commented 3 years ago

Hi, if I run git diff mycommit I have the git diff in the shell.

Is it a way to have in example an HTML output?

Thank you

nichtich commented 2 years ago

First enable daff in your git repository as described in the documentation (daff git csv). Then open your ~/.gitconfig and modify the daff-csv entry by adding an output format, e.g.

[diff "daff-csv"]
    command = daff diff --git --output-format www

For command line use output format psv can make sense because it is easier to read than csv but www is also nice if you have enough screen space for an additional browser window.