From e0ed216c903b712b5b6f63800b3074801c08040f Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sun, 3 Dec 2017 14:51:03 -0600 Subject: [PATCH] .gitconfig: Use diff.algorithm = patience --- .gitconfig | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitconfig b/.gitconfig index 5703c95..ef10054 100644 --- a/.gitconfig +++ b/.gitconfig @@ -20,10 +20,10 @@ bv = !git branch --color -vv cv = !git-cherry-view # Diff helpers - df = diff --patience - dfc = diff --patience --cached - dfw = diff --patience --word-diff=color - dfcw = diff --patience --cached --word-diff=color + df = diff + dfc = diff --cached + dfw = diff --word-diff=color + dfcw = diff --cached --word-diff=color # Searching ls = ls-files ack = !git-ack @@ -34,6 +34,7 @@ root = rev-parse --show-toplevel who = shortlog -s -- fp = format-patch --stdout + patch = !git --no-pager diff --no-color [core] filemode = true @@ -43,6 +44,7 @@ [diff] renames = copies + algorithm = patience [sendemail] smtpserver = smtp.gmail.com @@ -74,5 +76,11 @@ changed = green bold untracked = blue bold +[color "diff-highlight"] + oldNormal = red bold + oldHighlight = red bold 52 + newNormal = green bold + newHighlight = green bold 22 + [push] default = matching -- 2.47.1