Skip to content
Snippets Groups Projects
Commit 75e1a08b authored by Junio C Hamano's avatar Junio C Hamano
Browse files

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
parents cba595ab 6195a76d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment