From: Tony Duckles Date: Sat, 17 Feb 2018 18:29:48 +0000 (-0600) Subject: .gitconfig: Use `diff-highlight` contrib script as diff-filter X-Git-Url: http://git.nynim.org/dotfiles.git/commitdiff_plain/87269b4973e5c71d3a7b3b9387a0e47e97da5e19?hp=87269b4973e5c71d3a7b3b9387a0e47e97da5e19;ds=sidebyside .gitconfig: Use `diff-highlight` contrib script as diff-filter - bin/diff-filter: Wrapper around calling the Git `diff-highlight` contrib script. This will degrade gracefully if `diff-highlight` script cannot be found in standard locations. - bin/diff-pager: Wrapper around calling new `diff-filter | $PAGER`. This can be used via `git config core.pager` or any other pager-like places which want to format git-patch output. - .gitconfig: - core.pager: use new `diff-pager` wrapper script. - interactive.diffFilter: use new `diff-filter` wrapper script. This lets `git add -i ...` use the same shared diff-filter. - color.diff-highlight: Tweak colors so that "normal" colors have a normal [non-colored] foreground color, and "highlight" colors can be simply "red bold" and "green bold" respectively. This eliminates visual clutter from the colored diff display, so that the diff output is less noise [for line-pairs which `diff-highlight` can process]. ---