@matheusbsbs / matheus-bagliano / commits / 4f75b115d7
Fork 0

Avoid ugly linewrap in git help

Some of the short help texts that are shown e.g. when running 'git' without any parameters wrap on a 80-column terminal. They are just one character over the line. This patch avoids it by decreasing the number of spaces around the preceding command name from four to three (on both sides for symmetry). Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>

Ren,bi(B Scharfe committed Feb 11, 2007 at 14:29 UTC 4f75b115d7b997c72f65ae1edc337914ea610b47
1 file changed +2 -2
help.c
+2 -2
@@ -168,8 +168,8 @@ static void list_common_cmds_help(void)
168
169 puts("The most commonly used git commands are:");
170 for (i = 0; i < ARRAY_SIZE(common_cmds); i++) {
171 - printf(" %s", common_cmds[i].name);
172 - mput_char(' ', longest - strlen(common_cmds[i].name) + 4);
171 + printf(" %s ", common_cmds[i].name);
172 + mput_char(' ', longest - strlen(common_cmds[i].name));
173 puts(common_cmds[i].help);
174 }
175 puts("(use 'git help -a' to get a list of all installed git commands)");