]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/commit
.gitconfig: Use `diff-highlight` contrib script as diff-filter
authorTony Duckles <tony@nynim.org>
Sat, 17 Feb 2018 18:29:48 +0000 (12:29 -0600)
committerTony Duckles <tony@nynim.org>
Sat, 17 Feb 2018 18:29:48 +0000 (12:29 -0600)
commit87269b4973e5c71d3a7b3b9387a0e47e97da5e19
tree5df0807c1aa22c94b937e7fe108c05acb50d4f44
parent597818a7faaad481baa6ad377c7a4131fdd52794
.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].
.gitconfig
bin/diff-filter [new file with mode: 0755]
bin/diff-pager [new file with mode: 0755]