summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-03-07 01:05:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-07 19:02:48 (GMT)
commitb25e2e64f68f3b1e790da9028c42b305c71580c7 (patch)
treecb992022bea8baddeff8b1f3be2e474bfb7c5bf4 /contrib
parent4ea2c974a0ffef18b966be1bb03168c7f10799c1 (diff)
downloadgit-b25e2e64f68f3b1e790da9028c42b305c71580c7.zip
git-b25e2e64f68f3b1e790da9028c42b305c71580c7.tar.gz
git-b25e2e64f68f3b1e790da9028c42b305c71580c7.tar.bz2
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>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/git-completion.bash3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 37bf4a6..dc3ec43 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1832,8 +1832,7 @@ _git_notes ()
;;
esac
;;
- add,--reuse-message=*|append,--reuse-message=*|\
- add,--reedit-message=*|append,--reedit-message=*)
+ *,--reuse-message=*|*,--reedit-message=*)
__git_complete_refs --cur="${cur#*=}"
;;
*,--*)