diff options
| author | Junio C Hamano <gitster@pobox.com> | 2017-04-26 15:39:09 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-04-26 15:39:09 +0900 |
| commit | f70b54118897ffaa768ac48c9dabec36b293d09a (patch) | |
| tree | 946225ca233c017e0206fdf9f69cba891b6ded25 /contrib/completion/git-completion.bash | |
| parent | Merge branch 'cc/split-index-config' (diff) | |
| parent | completion: expand "push --delete <remote> <ref>" for refs on that <remote> (diff) | |
| download | git-f70b54118897ffaa768ac48c9dabec36b293d09a.tar.gz git-f70b54118897ffaa768ac48c9dabec36b293d09a.zip | |
Merge branch 'ab/completion-push-delete-ref'
The completion script (in contrib/) learned to complete "git push
--delete b<TAB>" to complete branch name to be deleted.
* ab/completion-push-delete-ref:
completion: expand "push --delete <remote> <ref>" for refs on that <remote>
Diffstat (limited to 'contrib/completion/git-completion.bash')
| -rw-r--r-- | contrib/completion/git-completion.bash | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 1150164d5c..b617019075 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -709,6 +709,7 @@ __git_complete_remote_or_refspec () i="${words[c]}" case "$i" in --mirror) [ "$cmd" = "push" ] && no_complete_refspec=1 ;; + -d|--delete) [ "$cmd" = "push" ] && lhs=0 ;; --all) case "$cmd" in push) no_complete_refspec=1 ;; |
