mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
Merge branch 'nd/help-align-command-desc'
Output from "git help" was not correctly aligned, which has been fixed. * nd/help-align-command-desc: help: align the longest command in the command listing
This commit is contained in:
commit
75e1a08b60
1 changed files with 2 additions and 1 deletions
3
help.c
3
help.c
|
@ -85,7 +85,8 @@ static void print_command_list(const struct cmdname_help *cmds,
|
|||
if (cmds[i].category & mask) {
|
||||
size_t len = strlen(cmds[i].name);
|
||||
printf(" %s ", cmds[i].name);
|
||||
mput_char(' ', longest > len ? longest - len : 1);
|
||||
if (longest > len)
|
||||
mput_char(' ', longest - len);
|
||||
puts(_(cmds[i].help));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue