Code

bash: support more 'git notes' subcommands and their options
authorSZEDER Gábor <szeder@ira.uka.de>
Sun, 10 Oct 2010 21:43:33 +0000 (23:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Oct 2010 22:08:59 +0000 (15:08 -0700)
commit2a5da75579310a674431e6b91fed1d712f4c24ae
tree9d6b169809db165a44143dbdc3bad66333469896
parent128191f5eec4365c4798d2bc8ef86008edb7d1bb
bash: support more 'git notes' subcommands and their options

The current completion function for 'git notes' only supported the
'edit' and 'show' subcommands and none of their options.  This patch
adds support for all missing subcommands, options, and their arguments
(files or refs), if any.

The code responsible for completing subcommand looks different
compared to the completion functions of other git commands with
subcommands.  This is because of the '--ref <notes-ref>' option which
comes before the subcommand (i.e. git notes --ref <notes-ref> add).

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash