]> git.ipfire.org Git - thirdparty/git.git/commit
completion: use __git when calling --list-cmds
authorTodd Zullinger <tmz@pobox.com>
Wed, 20 Mar 2019 18:03:29 +0000 (14:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Mar 2019 02:55:34 +0000 (11:55 +0900)
commit2eb6f09f7d9c02266f7e6ac8b1591abc8b10278d
treea1f434b215dfc5ed31855349660d84b7855fb4cc
parent057ab54b6646fbdabc8c953299f218081ff67456
completion: use __git when calling --list-cmds

As we made --list-cmds read the local configuration file in an
earlier step, the completion.commands variable respects repo-level
configuration.  Use __git which ensures that the proper repo config
is consulted if the command line contains 'git -C /some/other/repo'.

Suggested-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Todd Zullinger <tmz@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash