Skip to content

Commit b25e2e6

Browse files
pcloudsgitster
authored andcommitted
completion: complete --{reuse,reedit}-message= for all notes subcmds
The new subcommand that takes these options is 'git notes edit'. Just accept the options from subcommands since we handle them the same way in builtin/notes.c anyway. If a user does git prune --reuse-message=... just let the command catches that error when it's executed. Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4ea2c97 commit b25e2e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,8 +1832,7 @@ _git_notes ()
18321832
;;
18331833
esac
18341834
;;
1835-
add,--reuse-message=*|append,--reuse-message=*|\
1836-
add,--reedit-message=*|append,--reedit-message=*)
1835+
*,--reuse-message=*|*,--reedit-message=*)
18371836
__git_complete_refs --cur="${cur#*=}"
18381837
;;
18391838
*,--*)

0 commit comments

Comments
 (0)