completion: teach submodule subcommands to complete options
commit65d5a1e0a5af4b4bb0878d1e35c0e8dd50d8a0f5
authorCornelius Weig <cornelius.weig@tngtech.com>
Fri, 3 Feb 2017 11:01:53 +0000 (3 12:01 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 4 Feb 2017 06:25:46 +0000 (3 22:25 -0800)
treeb7c6c4149c3bbb3834064f6096ee3d767d96b833
parent6e3a7b3398559305c7a239a42e447c21a8f39ff8
completion: teach submodule subcommands to complete options

Each submodule subcommand has specific long-options. Therefore, teach
bash completion to support option completion based on the current
subcommand. All long-options that are mentioned in the man-page synopsis
are added.

Signed-off-by: Cornelius Weig <cornelius.weig@tngtech.com>
Reviewed-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash