mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 15:26:16 -04:00
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 inbfffda6, 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 beforebfffda6.
This commit is contained in:
parent
d240263f42
commit
ecf2174803
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue