]> git.ipfire.org Git - thirdparty/git.git/commit - contrib/completion/git-completion.bash
completion: add __git_get_option_value helper
authorThomas Braun <thomas.braun@virtuell-zuhause.de>
Fri, 10 Jun 2016 10:12:05 +0000 (12:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Jun 2016 18:54:57 +0000 (11:54 -0700)
commit7c599e92aaba4a2ef07784858def25ced8512276
tree826c6c7a6bbcacd81cab6fa68acdd41876411b28
parent21d2a9e3cce6167a3cf69303ad5b35ec819a763b
completion: add __git_get_option_value helper

This function allows to search the commmand line and config
files for an option, long and short, with mandatory value.

The function would return e.g. for the command line
"git status -uno --untracked-files=all" the result
"all" regardless of the config option.

Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash