Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 28 additions & 4 deletions git.fish
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# The contained completion routines provide support for completing:
#
# * git-flow init and version
# * feature, hotfix and release branches
# * remote feature, hotfix and release branch names
# * feature, bugfix, hotfix and release branches
# * remote feature, bugfix, hotfix and release branch names
#
#
# Installation
Expand Down Expand Up @@ -175,7 +175,31 @@ complete -f -c git -n '__fish_git_flow_using_command release track' -a '(__fish_



## git-flow hotfix
## git-flow bugfix

complete -f -c git -n '__fish_git_flow_using_command' -a bugfix -d 'Manage bugfix branches'
complete -f -c git -n '__fish_git_flow_using_command bugfix' -a list -d 'List bugfix branches'
complete -f -c git -n '__fish_git_flow_using_command bugfix' -s v -d 'Verbose output'

complete -f -c git -n '__fish_git_flow_using_command bugfix' -a start -d 'Start a new bugfix branch'
complete -f -c git -n '__fish_git_flow_using_command bugfix start' -s F -d 'Fetch from origin first'

complete -f -c git -n '__fish_git_flow_using_command bugfix' -a finish -d 'Finish a bugfix branch'
complete -f -c git -n '__fish_git_flow_using_command bugfix finish' -s F -d 'Fetch from origin first'
complete -f -c git -n '__fish_git_flow_using_command bugfix finish' -s s -d 'Sign the bugfix tag cryptographically'
complete -f -c git -n '__fish_git_flow_using_command bugfix finish' -s u -d 'Use the given GPG-key for the digital signature (implies -s)'
complete -f -c git -n '__fish_git_flow_using_command bugfix finish' -s m -d 'Use the given tag message'
complete -f -c git -n '__fish_git_flow_using_command bugfix finish' -s p -d 'Push to $ORIGIN after performing finish'
complete -f -c git -n '__fish_git_flow_using_command bugfix finish' -a '(__fish_git_flow_branches bugfix)' -d 'Bugfix branch'

complete -f -c git -n '__fish_git_flow_using_command bugfix' -a delete -d 'Delete a bugfix branch'
complete -f -c git -n '__fish_git_flow_using_command bugfix delete' -s f -d 'Force deletion'
complete -f -c git -n '__fish_git_flow_using_command bugfix delete' -s r -d 'Delete remote branch'
complete -f -c git -n '__fish_git_flow_using_command bugfix delete' -a '(__fish_git_flow_branches bugfix)' -d 'Bugfix branch'



## git-flow hotfix

complete -f -c git -n '__fish_git_flow_using_command' -a hotfix -d 'Manage hotfix branches'
complete -f -c git -n '__fish_git_flow_using_command hotfix' -a list -d 'List hotfix branches'
Expand All @@ -192,7 +216,7 @@ complete -f -c git -n '__fish_git_flow_using_command hotfix finish' -s m -d 'Use
complete -f -c git -n '__fish_git_flow_using_command hotfix finish' -s p -d 'Push to $ORIGIN after performing finish'
complete -f -c git -n '__fish_git_flow_using_command hotfix finish' -a '(__fish_git_flow_branches hotfix)' -d 'Hotfix branch'

complete -f -c git -n '__fish_git_flow_using_command hotfix' -a delete -d 'Delete a feature branch'
complete -f -c git -n '__fish_git_flow_using_command hotfix' -a delete -d 'Delete a hotfix branch'
complete -f -c git -n '__fish_git_flow_using_command hotfix delete' -s f -d 'Force deletion'
complete -f -c git -n '__fish_git_flow_using_command hotfix delete' -s r -d 'Delete remote branch'
complete -f -c git -n '__fish_git_flow_using_command hotfix delete' -a '(__fish_git_flow_branches hotfix)' -d 'Hotfix branch'
Expand Down