* [Patch] Nice help Output - SmallProjectIdea[1]
@ 2015-05-01 18:33 Alangi Derick
2015-05-01 19:11 ` Thomas Gummerer
0 siblings, 1 reply; 4+ messages in thread
From: Alangi Derick @ 2015-05-01 18:33 UTC (permalink / raw)
To: git
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Patch] Nice help Output - SmallProjectIdea[1]
2015-05-01 18:33 [Patch] Nice help Output - SmallProjectIdea[1] Alangi Derick
@ 2015-05-01 19:11 ` Thomas Gummerer
2015-05-02 7:04 ` Alangi Derick
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Gummerer @ 2015-05-01 19:11 UTC (permalink / raw)
To: Alangi Derick, git
Hi,
Alangi Derick <alangiderick@gmail.com> writes:
> This is a patch to fix the problem as given in the site:
> https://git.wiki.kernel.org/index.php/SmallProjectsIdeas
Please have a look at Documentation/SubmittingPatches, on how to submit
well formed patches. In particular, the following things should be
improved:
- The commit should have a meaningful commit message (See section 2 in
SubmittingPatches)
- The patch should be created with git format-patch, so it can be
applied using git am. (See section 3 and 4)
- Your work should be signed off, otherwise it can not be applied to the
project. (See section 5)
> 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));
> + }
> +
Patch formatting issues aside, I don't think this does what is suggested
in the project. You are just adding a blank line after three lines in
the help output, which I don't think improves the current state by much.
The bzr help output on the other hand groups similar commands together,
and shows them to the user in groups. So the first step would be to
find out which commands should be grouped together and then to output
the groups here.
> }
> }
>
>
> Regards
> Alangi Derick Ndimnain
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Patch] Nice help Output - SmallProjectIdea[1]
2015-05-01 19:11 ` Thomas Gummerer
@ 2015-05-02 7:04 ` Alangi Derick
2015-05-02 9:51 ` Thomas Gummerer
0 siblings, 1 reply; 4+ messages in thread
From: Alangi Derick @ 2015-05-02 7:04 UTC (permalink / raw)
To: Thomas Gummerer; +Cc: git
Thanks for the correction. I will work on that and see if i can solve
the problem. With respect to my git send-email, it is not working so i
don't know whether i have a problem with my smtp. I don't know how to
configure it.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Patch] Nice help Output - SmallProjectIdea[1]
2015-05-02 7:04 ` Alangi Derick
@ 2015-05-02 9:51 ` Thomas Gummerer
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Gummerer @ 2015-05-02 9:51 UTC (permalink / raw)
To: Alangi Derick; +Cc: git
Hi,
On 05/02, Alangi Derick wrote:
> Thanks for the correction. I will work on that and see if i can solve
> the problem.
I've noticed there was another patch series, which attempts at solving
the same problem at
http://thread.gmane.org/gmane.comp.version-control.git/268198. So
maybe you could coordinate with Sébastien, or work on another project,
to avoid duplicating the work.
> With respect to my git send-email, it is not working so i
> don't know whether i have a problem with my smtp. I don't know how to
> configure it.
Maybe you can send us the configuration here, so someone might be able
to help. Though it might be faster to get help on IRC, on the #git
channel on freenode.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-05-02 9:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-01 18:33 [Patch] Nice help Output - SmallProjectIdea[1] Alangi Derick
2015-05-01 19:11 ` Thomas Gummerer
2015-05-02 7:04 ` Alangi Derick
2015-05-02 9:51 ` Thomas Gummerer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.