From ac70b8edd55560b4d65c79cae2dbec75dc7e024c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Wed, 21 Feb 2018 13:40:59 +0100 Subject: [PATCH] Add `sync` command to shell completion scripts Fixes #1549 --- etc/hub.bash_completion.sh | 1 + etc/hub.fish_completion | 1 + etc/hub.zsh_completion | 2 ++ 3 files changed, 4 insertions(+) diff --git a/etc/hub.bash_completion.sh b/etc/hub.bash_completion.sh index 5ddeb526..47246e00 100755 --- a/etc/hub.bash_completion.sh +++ b/etc/hub.bash_completion.sh @@ -22,6 +22,7 @@ create browse compare ci-status +sync EOF __git_list_all_commands_without_hub } diff --git a/etc/hub.fish_completion b/etc/hub.fish_completion index fcb32384..fcda3d41 100644 --- a/etc/hub.fish_completion +++ b/etc/hub.fish_completion @@ -24,6 +24,7 @@ complete -f -c hub -n '__fish_hub_needs_command' -a create -d "create new repo o complete -f -c hub -n '__fish_hub_needs_command' -a fork -d "fork origin repo on GitHub" complete -f -c hub -n '__fish_hub_needs_command' -a pull-request -d "open a pull request on GitHub" complete -f -c hub -n '__fish_hub_needs_command' -a ci-status -d "display GitHub Status information for a commit" +complete -f -c hub -n '__fish_hub_needs_command' -a sync -d "update local branches from upstream" # alias complete -f -c hub -n ' __fish_hub_using_command alias' -a 'bash zsh sh ksh csh fish' -d "output shell script suitable for eval" diff --git a/etc/hub.zsh_completion b/etc/hub.zsh_completion index 3a649387..1833a9c0 100755 --- a/etc/hub.zsh_completion +++ b/etc/hub.zsh_completion @@ -89,6 +89,7 @@ __hub_setup_zsh_fns () { browse:'browse the project on GitHub' compare:'open GitHub compare view' ci-status:'lookup commit in GitHub Status API' + sync:'update local branches from upstream' ) _describe -t hub-commands 'hub command' hub_commands && ret=0 @@ -115,6 +116,7 @@ create browse compare ci-status +sync EOF __git_list_all_commands_without_hub } -- GitLab