]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git.c
completion: add and use --list-cmds=alias
[thirdparty/git.git] / git.c
diff --git a/git.c b/git.c
index f6ae79ffaf7266326bb90bce154bfd9761364c75..63acd9ea81ea9d339f98ebb78a389fc632d89fe3 100644 (file)
--- a/git.c
+++ b/git.c
@@ -75,6 +75,8 @@ static int list_cmds(const char *spec)
                        list_all_other_cmds(&list);
                else if (match_token(spec, len, "nohelpers"))
                        exclude_helpers_from_list(&list);
+               else if (match_token(spec, len, "alias"))
+                       list_aliases(&list);
                else if (len > 5 && !strncmp(spec, "list-", 5)) {
                        struct strbuf sb = STRBUF_INIT;