Fix: --date option in gbl can not be overridden anymore

The order of the arguments passed to git blame in _forgit_blame_preview
has been changed in bfffda6, putting --date=short as the last argument
instead of the first. This caused it taking precedence of anything
defined in $FORGIT_BLAME_GIT_OPTS.
This commit restores the order of the arguments to what they were before
bfffda6.
This commit is contained in:
sandroid 2024-04-19 23:31:12 +02:00
parent d240263f42
commit ecf2174803
No known key found for this signature in database
GPG key ID: 91418C9982B8B76E

View file

@ -851,7 +851,7 @@ _forgit_blame_preview() {
if _forgit_is_file_tracked "$1"; then
_forgit_blame_git_opts=()
_forgit_parse_array _forgit_blame_git_opts "$FORGIT_BLAME_GIT_OPTS"
git blame "$@" "${_forgit_blame_git_opts[@]}" --date=short | _forgit_pager blame
git blame --date=short "${_forgit_blame_git_opts[@]}" "$@" | _forgit_pager blame
else
echo "File not tracked"
fi