summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-03-07 01:05:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-07 19:02:48 (GMT)
commit27b42d045c06b6138555fef2b00d8d72220bc8be (patch)
treea93a03162240fdb9c67c940b052cb7d340dce9ea /contrib
parentb25e2e64f68f3b1e790da9028c42b305c71580c7 (diff)
downloadgit-27b42d045c06b6138555fef2b00d8d72220bc8be.zip
git-27b42d045c06b6138555fef2b00d8d72220bc8be.tar.gz
git-27b42d045c06b6138555fef2b00d8d72220bc8be.tar.bz2
completion: more subcommands in _git_notes()
Two subcommands are added for completion: merge and get-ref. get-ref is more like plumbing. But since it does not share the prefix with any other subcommands, it won't slow anybody down. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/git-completion.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index dc3ec43..2e30950 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1815,7 +1815,7 @@ _git_name_rev ()
_git_notes ()
{
- local subcommands='add append copy edit list prune remove show'
+ local subcommands='add append copy edit get-ref list merge prune remove show'
local subcommand="$(__git_find_on_cmdline "$subcommands")"
case "$subcommand,$cur" in
@@ -1838,7 +1838,7 @@ _git_notes ()
*,--*)
__gitcomp_builtin notes_$subcommand
;;
- prune,*)
+ prune,*|get-ref,*)
# this command does not take a ref, do not complete it
;;
*)