Skip to content

Commit a9e5ff9

Browse files
dschoderrickstolee
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 <johannes.schindelin@gmx.de>
1 parent 06c3619 commit a9e5ff9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

builtin/help.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@ static const char *cmd_to_page(const char *git_cmd)
430430
return git_cmd;
431431
else if (is_git_command(git_cmd))
432432
return xstrfmt("git-%s", git_cmd);
433+
else if (!strcmp("scalar", git_cmd))
434+
return xstrdup(git_cmd);
433435
else
434436
return xstrfmt("git%s", git_cmd);
435437
}

0 commit comments

Comments
 (0)