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>
Nguyễn Thái Ngọc Duy committed
Mar 7, 2018 at 08:05 UTC
27b42d045c06b6138555fef2b00d8d72220bc8be
1 file changed
+2
-2
contrib/completion/git-completion.bash
+2
-2
@@ -1815,7 +1815,7 @@ _git_name_rev ()
1815
1816
_git_notes ()
1817
{
1818
- local subcommands='add append copy edit list prune remove show'
1818
+ local subcommands='add append copy edit get-ref list merge prune remove show'
1819
local subcommand="$(__git_find_on_cmdline "$subcommands")"
1820
1821
case "$subcommand,$cur" in
@@ -1838,7 +1838,7 @@ _git_notes ()
1838
*,--*)
1839
__gitcomp_builtin notes_$subcommand
1840
;;
1841
- prune,*)
1841
+ prune,*|get-ref,*)
1842
# this command does not take a ref, do not complete it
1843
;;
1844
*)