]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git.c
completion: allow to customize the completable command list
[thirdparty/git.git] / git.c
diff --git a/git.c b/git.c
index 63acd9ea81ea9d339f98ebb78a389fc632d89fe3..447dac0e71e6f3dc6680dcabc31210c6a967b814 100644 (file)
--- a/git.c
+++ b/git.c
@@ -77,6 +77,8 @@ static int list_cmds(const char *spec)
                        exclude_helpers_from_list(&list);
                else if (match_token(spec, len, "alias"))
                        list_aliases(&list);
+               else if (match_token(spec, len, "config"))
+                       list_cmds_by_config(&list);
                else if (len > 5 && !strncmp(spec, "list-", 5)) {
                        struct strbuf sb = STRBUF_INIT;