completion: add __git_get_option_value helper