difftastic icon indicating copy to clipboard operation
difftastic copied to clipboard

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

Open gunar opened this issue 3 years ago • 1 comments

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.

  • I've managed to get git diff to use difftastic with the following .gitconfig
  • And it works with git log -p --ext-diff too
  • But how can I get rid of the --ext-diff argument and always use difftastic by default?

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

gunar avatar Apr 14 '22 15:04 gunar

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

Xuanwo avatar May 11 '22 05:05 Xuanwo