summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:17:20 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-03 15:17:20 +0900
commitbabe3f45019ecfde96339b773036d4288a1819da (patch)
tree34dece0e3d2bc84b23f21d0f9b94a9a5780cd73c /help.c
parent06f1b8df6f3f90746c8ed50296e467e540531d8f (diff)
downloadgit-babe3f45019ecfde96339b773036d4288a1819da.tar.gz
git-babe3f45019ecfde96339b773036d4288a1819da.tar.bz2
git-babe3f45019ecfde96339b773036d4288a1819da.zip
Imported Upstream version 2.29.0upstream/2.29.0
Diffstat (limited to 'help.c')
-rw-r--r--help.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/help.c b/help.c
index 44cee69c..919cbb92 100644
--- 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);
@@ -397,10 +399,10 @@ void list_cmds_by_config(struct string_list *list)
}
}
-void list_common_guides_help(void)
+void list_guides_help(void)
{
struct category_description catdesc[] = {
- { CAT_guide, N_("The common Git guides are:") },
+ { CAT_guide, N_("The Git concept guides are:") },
{ 0, NULL }
};
print_cmd_by_category(catdesc, NULL);