From 5b39620b3d1a05d6e1d04fe4851779c46e1b34d9 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 14 May 2025 22:22:10 +0200 Subject: git: Add difftastic as an external diff tool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .gitconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 -- cgit v1.2.3