]> git.ipfire.org Git - thirdparty/git.git/blobdiff - help.c
list-objects-filter-options: fix function name in BUG
[thirdparty/git.git] / help.c
diff --git a/help.c b/help.c
index d478afb2af2631857e2431e1d83e48114995ee00..919cbb9206aedf98ac97e59e2132451210e1d4e4 100644 (file)
--- a/help.c
+++ b/help.c
@@ -263,6 +263,8 @@ void load_command_list(const char *prefix,
        const char *env_path = getenv("PATH");
        const char *exec_path = git_exec_path();
 
+       load_builtin_commands(prefix, main_cmds);
+
        if (exec_path) {
                list_commands_in_dir(main_cmds, exec_path, prefix);
                QSORT(main_cmds->names, main_cmds->cnt, cmdname_compare);
@@ -375,7 +377,7 @@ void list_cmds_by_config(struct string_list *list)
 {
        const char *cmd_list;
 
-       if (git_config_get_string_const("completion.commands", &cmd_list))
+       if (git_config_get_string_tmp("completion.commands", &cmd_list))
                return;
 
        string_list_sort(list);