Skip to content

Commit

Permalink
completion(git-rebase): non-interactive mode also supports --autosquash
Browse files Browse the repository at this point in the history
  • Loading branch information
e-kwsm committed May 26, 2024
1 parent 9dcaf78 commit 9f8f934
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Completion/Unix/Command/_git
Original file line number Diff line number Diff line change
Expand Up @@ -1559,12 +1559,9 @@ _git-range-diff () {
(( $+functions[_git-rebase] )) ||
_git-rebase () {
local -a autosquash_opts

if (( words[(I)-i|--interactive] )); then
autosquash_opts=(
'( --no-autosquash)--autosquash[check for auto-squash boundaries]'
'(--autosquash )--no-autosquash[do not check for auto-squash boundaries]')
fi
autosquash_opts=(
'( --no-autosquash)--autosquash[check for auto-squash boundaries]'
'(--autosquash )--no-autosquash[do not check for auto-squash boundaries]')

_arguments -s -S $endopt \
- actions \
Expand Down

0 comments on commit 9f8f934

Please sign in to comment.