Skip to content

Commit

Permalink
Allow passing parameters to forgit::reset::head (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandr01d committed May 31, 2023
1 parent 99cda32 commit 0bedb80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/git-forgit
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +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
rootdir=$(git rev-parse --show-toplevel)
cmd="git diff --staged --color=always -- $rootdir/{} | $_forgit_diff_pager "
opts="
Expand Down

0 comments on commit 0bedb80

Please sign in to comment.