aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-05-14 22:22:10 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-05-14 22:22:10 +0200
commit5b39620b3d1a05d6e1d04fe4851779c46e1b34d9 (patch)
tree51f8f1c4372bd27ffff1e89785fe0b502ee593b0
parent402d070bd16b59d0464b41ec3bf48883d82a4c9a (diff)
downloaddotfiles-5b39620b3d1a05d6e1d04fe4851779c46e1b34d9.tar.gz
dotfiles-5b39620b3d1a05d6e1d04fe4851779c46e1b34d9.zip
git: Add difftastic as an external diff tool
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
-rw-r--r--.gitconfig23
1 files changed, 23 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index 2611e36..ceca5a4 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -66,8 +66,31 @@
[column]
ui = auto
+##
+# git send-email
+
[sendemail]
smtpEncryption = tls
smtpServer = smtp.gmail.com
smtpUser = mikisabate@gmail.com
smtpServerPort = 587
+
+##
+# Use difftastic.
+
+[difftool]
+ # Run the difftool immediately, don't ask 'are you sure' each time.
+ prompt = false
+
+[pager]
+ # Use a pager if the difftool output is larger than one screenful,
+ # consistent with the behaviour of `git diff`.
+ difftool = true
+
+[diff]
+ # Use `difft` by default.
+ external = difft
+
+ # Set difftastic as the default difftool, so we don't need to specify
+ # `-t difftastic` every time.
+ tool = difftastic