Merge branch 'tz/completion'
The completion helper code now pays attention to repository-local configuration (when available), which allows --list-cmds to honour a repository specific setting of completion.commands, for example. * tz/completion: completion: use __git when calling --list-cmds completion: fix multiple command removals t9902: test multiple removals via completion.commands git: read local config in --list-cmds
This commit is contained in:
@@ -1484,6 +1484,12 @@ test_expect_success 'git --help completion' '
|
||||
test_completion "git --help core" "core-tutorial "
|
||||
'
|
||||
|
||||
test_expect_success 'completion.commands removes multiple commands' '
|
||||
test_config completion.commands "-cherry -mergetool" &&
|
||||
git --list-cmds=list-mainporcelain,list-complete,config >out &&
|
||||
! grep -E "^(cherry|mergetool)$" out
|
||||
'
|
||||
|
||||
test_expect_success 'setup for integration tests' '
|
||||
echo content >file1 &&
|
||||
echo more >file2 &&
|
||||
|
||||
Reference in New Issue
Block a user