Skip to content

Commit dd9603e

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Victoria Dye <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7b5c93c commit dd9603e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builtin/help.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@ static const char *cmd_to_page(const char *git_cmd)
440440
return git_cmd;
441441
else if (is_git_command(git_cmd))
442442
return xstrfmt("git-%s", git_cmd);
443+
else if (!strcmp("scalar", git_cmd))
444+
return xstrdup(git_cmd);
443445
else
444446
return xstrfmt("git%s", git_cmd);
445447
}

0 commit comments

Comments
 (0)