From 20da7e971baa6903f942493e8a8b1f761b4a0ce6 Mon Sep 17 00:00:00 2001 From: Frederick Henderson Date: Sun, 18 Dec 2016 23:12:55 +0100 Subject: [PATCH] Added Fish shell completion for the bugfix commands. --- git.fish | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/git.fish b/git.fish index d153846..3e3cf2a 100644 --- a/git.fish +++ b/git.fish @@ -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 @@ -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' @@ -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'