mirror of
https://github.com/git/git.git
synced 2024-10-30 13:57:54 +01:00
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>
This commit is contained in:
parent
b25e2e64f6
commit
27b42d045c
1 changed files with 2 additions and 2 deletions
|
@ -1815,7 +1815,7 @@ _git_name_rev ()
|
||||||
|
|
||||||
_git_notes ()
|
_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")"
|
local subcommand="$(__git_find_on_cmdline "$subcommands")"
|
||||||
|
|
||||||
case "$subcommand,$cur" in
|
case "$subcommand,$cur" in
|
||||||
|
@ -1838,7 +1838,7 @@ _git_notes ()
|
||||||
*,--*)
|
*,--*)
|
||||||
__gitcomp_builtin notes_$subcommand
|
__gitcomp_builtin notes_$subcommand
|
||||||
;;
|
;;
|
||||||
prune,*)
|
prune,*|get-ref,*)
|
||||||
# this command does not take a ref, do not complete it
|
# this command does not take a ref, do not complete it
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in a new issue