From c76b00bcef19fdc4b48b5082225c2cb651a11a6c Mon Sep 17 00:00:00 2001 From: sandr01d <88739791+sandr01d@users.noreply.github.com> Date: Thu, 25 Apr 2024 22:57:02 +0200 Subject: [PATCH] Fix: --date option in gbl can not be overridden anymore (#385) 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 c10b7b38..9ae7647d 100755 --- a/bin/git-forgit +++ b/bin/git-forgit @@ -865,7 +865,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