diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-04-16 19:28:09 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-04-16 19:28:09 +0900 |
| commit | 2850232a21fa1c2548d4e4df9dbfb51e6423dcce (patch) | |
| tree | 8bc7edc13b8db632e01fd86d066a98ef81b5fb56 /git.c | |
| parent | 08c9757a76eaeae1a600b98932e65bd339a73e25 (diff) | |
| parent | 2eb6f09f7d9c02266f7e6ac8b1591abc8b10278d (diff) | |
| download | git-2850232a21fa1c2548d4e4df9dbfb51e6423dcce.tar.xz | |
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
Diffstat (limited to 'git.c')
| -rw-r--r-- | git.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -62,6 +62,13 @@ static int list_cmds(const char *spec) { struct string_list list = STRING_LIST_INIT_DUP; int i; + int nongit; + + /* + * Set up the repository so we can pick up any repo-level config (like + * completion.commands). + */ + setup_git_directory_gently(&nongit); while (*spec) { const char *sep = strchrnul(spec, ','); |
