{"thread":{"id":"6767","subject":"[PATCH] Avoid ugly linewrap in git help","startedAt":"2007-02-11T13:29:58Z","lastAt":"2007-02-11T21:49:29Z","messageCount":2,"participants":["René Scharfe","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"34161","messageId":"45CF1A56.1060809@lsrfire.ath.cx","threadId":"6767","inReplyTo":null,"subject":"[PATCH] Avoid ugly linewrap in git help","fromName":"René Scharfe","fromEmail":"rene.scharfe@lsrfire.ath.cx","sentAt":"2007-02-11T13:29:58Z","receivedAt":"2007-02-11T13:29:58Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Some of the short help texts that are shown e.g. when running 'git'\nwithout any parameters wrap on a 80-column terminal.  They are just\none character over the line.  This patch avoids it by decreasing the\nnumber of spaces around the preceding command name from four to\nthree (on both sides for symmetry).\n\nSigned-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>\n---\n\n help.c |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/help.c b/help.c\nindex 341b9e3..b667463 100644\n--- a/help.c\n+++ b/help.c\n@@ -168,8 +168,8 @@ static void list_common_cmds_help(void)\n \n \tputs(\"The most commonly used git commands are:\");\n \tfor (i = 0; i < ARRAY_SIZE(common_cmds); i++) {\n-\t\tprintf(\"    %s\", common_cmds[i].name);\n-\t\tmput_char(' ', longest - strlen(common_cmds[i].name) + 4);\n+\t\tprintf(\"   %s   \", common_cmds[i].name);\n+\t\tmput_char(' ', longest - strlen(common_cmds[i].name));\n \t\tputs(common_cmds[i].help);\n \t}\n \tputs(\"(use 'git help -a' to get a list of all installed git commands)\");\n"},{"id":"34190","messageId":"7vk5yocql2.fsf@assigned-by-dhcp.cox.net","threadId":"6767","inReplyTo":"45CF1A56.1060809@lsrfire.ath.cx","subject":"Re: [PATCH] Avoid ugly linewrap in git help","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-02-11T21:49:29Z","receivedAt":"2007-02-11T21:49:29Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}