Add parameters

This commit is contained in:
sandroid 2023-05-31 19:09:18 +02:00
parent 9352f3611f
commit ce02844836
No known key found for this signature in database
GPG key ID: 91418C9982B8B76E

View file

@ -194,7 +194,7 @@ _forgit_reset_head() {
_forgit_inside_work_tree || return 1
local git_reset_head cmd files opts rootdir
git_reset_head="git reset -q $FORGIT_RESET_HEAD_GIT_OPTS HEAD"
[[ $# -ne 0 ]] && $git_reset_head && git status --short && return
[[ $# -ne 0 ]] && $git_reset_head "$@" && git status --short && return
rootdir=$(git rev-parse --show-toplevel)
cmd="git diff --staged --color=always -- $rootdir/{} | $_forgit_diff_pager "
opts="