diff options
author | Ren,bi(B Scharfe <rene.scharfe@lsrfire.ath.cx> | 2007-02-11 14:29:58 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-11 12:42:01 -0800 |
commit | 4f75b115d7b997c72f65ae1edc337914ea610b47 (patch) | |
tree | 7cfb68596a968e12c088401bdcc4d04d85918ec2 /help.c | |
parent | b4f020c5d0850ff2b6227abebc5ce72cffe8e1c1 (diff) | |
download | git-4f75b115d7b997c72f65ae1edc337914ea610b47.tar.gz |
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>
Diffstat (limited to 'help.c')
-rw-r--r-- | help.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -168,8 +168,8 @@ static void list_common_cmds_help(void) puts("The most commonly used git commands are:"); for (i = 0; i < ARRAY_SIZE(common_cmds); i++) { - printf(" %s", common_cmds[i].name); - mput_char(' ', longest - strlen(common_cmds[i].name) + 4); + printf(" %s ", common_cmds[i].name); + mput_char(' ', longest - strlen(common_cmds[i].name)); puts(common_cmds[i].help); } puts("(use 'git help -a' to get a list of all installed git commands)"); |