diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:17:20 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:17:20 +0900 |
commit | babe3f45019ecfde96339b773036d4288a1819da (patch) | |
tree | 34dece0e3d2bc84b23f21d0f9b94a9a5780cd73c /help.c | |
parent | 06f1b8df6f3f90746c8ed50296e467e540531d8f (diff) | |
download | git-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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); |