batdiff: Fix use of deprecated --hunk-style

Delta has deprecated --hunk-style in favor of its synonym
--hunk-header-decoration-style. See
https://github.com/dandavison/delta/releases/tag/0.12.0
This commit is contained in:
MithicSpirit 2022-02-26 12:26:08 -05:00 committed by Ethan P
parent 69792e95da
commit 462df32d4c

View File

@ -77,7 +77,7 @@ done
# Append arguments for delta/bat.
BAT_ARGS+=("--terminal-width=${OPT_TERMINAL_WIDTH}" "--paging=never")
DELTA_ARGS+=("--width=${OPT_TERMINAL_WIDTH}" "--paging=never" "--hunk-style=plain")
DELTA_ARGS+=("--width=${OPT_TERMINAL_WIDTH}" "--paging=never" "--hunk-header-decoration-style=plain")
if "$OPT_COLOR"; then
BAT_ARGS+=("--color=always")