From: Johannes Schindelin Date: Fri, 2 Sep 2022 15:56:44 +0000 (+0000) Subject: git help: special-case `scalar` X-Git-Tag: v2.38.0-rc1~14^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd9603e22822fab19c0557dad0cf1825de325403;p=thirdparty%2Fgit.git git help: special-case `scalar` With this commit, `git help scalar` will open the appropriate manual or HTML page (instead of looking for `gitscalar`). Signed-off-by: Johannes Schindelin Signed-off-by: Victoria Dye Signed-off-by: Junio C Hamano --- diff --git a/builtin/help.c b/builtin/help.c index 09ac4289f1..6f2796f211 100644 --- a/builtin/help.c +++ b/builtin/help.c @@ -440,6 +440,8 @@ static const char *cmd_to_page(const char *git_cmd) return git_cmd; else if (is_git_command(git_cmd)) return xstrfmt("git-%s", git_cmd); + else if (!strcmp("scalar", git_cmd)) + return xstrdup(git_cmd); else return xstrfmt("git%s", git_cmd); }