From 1d9311cbfa743a494a85dcc28bf87d6c00fa4b58 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 29 Apr 2018 20:01:04 +0300 Subject: [PATCH] .gitconfig: Add alias `dh` to run diff-highlight --- .gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitconfig b/.gitconfig index 478bd4a..66db0bd 100644 --- a/.gitconfig +++ b/.gitconfig @@ -144,6 +144,7 @@ checkin = commit ci = commit cat = cat-file -p + dh = "!f() { git -c color.diff=always diff \"$@\" | perl /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less; }; f" dir = rev-parse --git-dir dump = cat-file -p file = cat-file -t -- 2.39.5