Skip to content

Commit 0bedb80

Browse files
authored
Allow passing parameters to forgit::reset::head (#309)
1 parent 99cda32 commit 0bedb80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/git-forgit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ _forgit_reset_head() {
194194
_forgit_inside_work_tree || return 1
195195
local git_reset_head cmd files opts rootdir
196196
git_reset_head="git reset -q $FORGIT_RESET_HEAD_GIT_OPTS HEAD"
197+
[[ $# -ne 0 ]] && $git_reset_head "$@" && git status --short && return
197198
rootdir=$(git rev-parse --show-toplevel)
198199
cmd="git diff --staged --color=always -- $rootdir/{} | $_forgit_diff_pager "
199200
opts="

0 commit comments

Comments
 (0)