From 81e0d1c66c4e126508db87f0cc57402e90b29046 Mon Sep 17 00:00:00 2001 From: sandroid Date: Fri, 26 May 2023 21:41:47 +0200 Subject: [PATCH] Allow passing parameters to reset_head --- bin/git-forgit | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/git-forgit b/bin/git-forgit index 9c465b3..2de4923 100755 --- a/bin/git-forgit +++ b/bin/git-forgit @@ -192,6 +192,7 @@ _forgit_add() { # git reset HEAD (unstage) selector _forgit_reset_head() { _forgit_inside_work_tree || return 1 + [[ $# -ne 0 ]] && git reset -q "$@" && git status --short && return local git_reset_head cmd files opts rootdir git_reset_head="git reset -q $FORGIT_RESET_HEAD_GIT_OPTS HEAD" rootdir=$(git rev-parse --show-toplevel)