]> git.phdru.name Git - dotfiles.git/commitdiff
.gitconfig: Add alias `dh` to run diff-highlight
authorOleg Broytman <phd@phdru.name>
Sun, 29 Apr 2018 17:01:04 +0000 (20:01 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 29 Apr 2018 17:01:04 +0000 (20:01 +0300)
.gitconfig

index 478bd4abf23d26d047beca5803ddec52eb9b6451..66db0bdc97d085df47c36d6ba06e7b2301396b2d 100644 (file)
        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