Skip to content

Commit 27b42d0

Browse files
pcloudsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b25e2e6 commit 27b42d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ _git_name_rev ()
18151815

18161816
_git_notes ()
18171817
{
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'
18191819
local subcommand="$(__git_find_on_cmdline "$subcommands")"
18201820

18211821
case "$subcommand,$cur" in
@@ -1838,7 +1838,7 @@ _git_notes ()
18381838
*,--*)
18391839
__gitcomp_builtin notes_$subcommand
18401840
;;
1841-
prune,*)
1841+
prune,*|get-ref,*)
18421842
# this command does not take a ref, do not complete it
18431843
;;
18441844
*)

0 commit comments

Comments
 (0)