[Patch] Nice help Output - SmallProjectIdea[1]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a patch to fix the problem as given in the site:
https://git.wiki.kernel.org/index.php/SmallProjectsIdeas

diff --git a/help.c b/help.c
index 2072a87..e347bbc 100644
--- a/help.c
+++ b/help.c
@@ -229,9 +229,18 @@ 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));
- puts(_(common_cmds[i].help));
+ if(i%3 == 1){
+ printf("   %s   ", common_cmds[i].name);
+ mput_char(' ', longest - strlen(common_cmds[i].name));
+ puts(_(common_cmds[i].help));
+ printf("\n");
+ }
+ else {
+ printf("   %s   ", common_cmds[i].name);
+ mput_char(' ', longest - strlen(common_cmds[i].name));
+ puts(_(common_cmds[i].help));
+ }
+
  }
 }


Regards
Alangi Derick Ndimnain
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]