From ecf21748038c8f9b783418796ed4d558140ec8dd Mon Sep 17 00:00:00 2001 From: sandroid Date: Fri, 19 Apr 2024 23:31:12 +0200 Subject: [PATCH] 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. --- bin/git-forgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-forgit b/bin/git-forgit index 726f212e..9bd4314f 100755 --- a/bin/git-forgit +++ b/bin/git-forgit @@ -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