mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-12 16:26:15 -04:00
Allow passing parameters to reset_head
This commit is contained in:
parent
99cda3248c
commit
81e0d1c66c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue