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 <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 b25e2e64f68f3b1e790da9028c42b305c71580c7
1 file changed +1 -2
contrib/completion/git-completion.bash
+1 -2
@@ -1832,8 +1832,7 @@ _git_notes ()
1832 ;;
1833 esac
1834 ;;
1835 - add,--reuse-message=*|append,--reuse-message=*|\
1836 - add,--reedit-message=*|append,--reedit-message=*)
1835 + *,--reuse-message=*|*,--reedit-message=*)
1836 __git_complete_refs --cur="${cur#*=}"
1837 ;;
1838 *,--*)