Wilfred / difftastic

a structural diff that understands syntax 🟥🟩
https://difftastic.wilfred.me.uk/
MIT License
20.54k stars 331 forks source link

How to make difft the default `git log` tool? #254

Open gunar opened 2 years ago

gunar commented 2 years ago

Hi, difftastic looks... well, fantastic! I've just installed it and am playing around.

Now, basically I want difftastic to handle git show and git log -p automatically—besides just git diff.

Thanks in advance, Gunar


[diff]
  tool = difft
  external = difft
[difftool]
  prompt = false
[difftool "difftastic"]
  cmd = difft "$LOCAL" "$REMOTE"
[pager]
  difftool = true
# `git dft` is less to type than `git difftool`.
[alias]
  dft = difftool
Xuanwo commented 2 years ago

Related to https://github.com/Wilfred/difftastic/issues/280