We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99cda32 commit 0bedb80Copy full SHA for 0bedb80
bin/git-forgit
@@ -194,6 +194,7 @@ _forgit_reset_head() {
194
_forgit_inside_work_tree || return 1
195
local git_reset_head cmd files opts rootdir
196
git_reset_head="git reset -q $FORGIT_RESET_HEAD_GIT_OPTS HEAD"
197
+ [[ $# -ne 0 ]] && $git_reset_head "$@" && git status --short && return
198
rootdir=$(git rev-parse --show-toplevel)
199
cmd="git diff --staged --color=always -- $rootdir/{} | $_forgit_diff_pager "
200
opts="
0 commit comments