Git development
 help / color / mirror / Atom feed
* [GSoC PATCH] bugreport: clarify usage message purpose
@ 2026-03-30  6:44 Smaran Jaianand
  2026-03-30  6:50 ` [GSoC PATCH v2] " Smaran Jaianand
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Smaran Jaianand @ 2026-03-30  6:44 UTC (permalink / raw)
  To: git; +Cc: smaran-jaianand

From: smaran-jaianand <24070721037@sithyd.siu.edu.in>

Add a brief description of the bugreport command to improve
clarity of the usage message.

Signed-off-by: smaran-jaianand <24070721037@sithyd.siu.edu.in>
---
 builtin/bugreport.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/builtin/bugreport.c b/builtin/bugreport.c
index f78c3f2aed..3b3fdd4dfb 100644
--- a/builtin/bugreport.c
+++ b/builtin/bugreport.c
@@ -56,7 +56,8 @@ static void get_populated_hooks(struct strbuf *hook_info, int nongit)
 }
 
 static const char * const bugreport_usage[] = {
-	N_("git bugreport [(-o | --output-directory) <path>]\n"
+	N_("git bugreport -create a bug report with diagnostic information \n"
+           "              [(-o | --output-directory) <path>]\n"
 	   "              [(-s | --suffix) <format> | --no-suffix]\n"
 	   "              [--diagnose[=<mode>]]"),
 	NULL
-- 
2.43.0


-- 
* <https://www.facebook.com/symbiosis.official/>*  
<https://www.instagram.com/symbiosis.official/>  
<https://www.linkedin.com/school/symbiosis-international-university/>  
<https://x.com/symbiosistweets> 
 




**Disclaimer:* This email is 
governed by the Disclaimer Terms of SIU, which may be viewed at 
http://siu.edu.in/disclaimer.php <http://siu.edu.in/disclaimer.php>*



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [GSoC PATCH v2] bugreport: clarify usage message purpose
  2026-03-30  6:44 [GSoC PATCH] bugreport: clarify usage message purpose Smaran Jaianand
@ 2026-03-30  6:50 ` Smaran Jaianand
  2026-03-30  9:32   ` Karthik Nayak
  2026-03-30 14:56 ` [GSoC PATCH] " Junio C Hamano
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Smaran Jaianand @ 2026-03-30  6:50 UTC (permalink / raw)
  To: git; +Cc: smaran-jaianand

From: smaran-jaianand <24070721037@sithyd.siu.edu.in>

v2: Fix spacing in usage message (add missing space and remove trailing whitespace).

Add a brief description of the bugreport command to improve
clarity of the usage message.

Signed-off-by: smaran-jaianand <24070721037@sithyd.siu.edu.in>
Signed-off-by: Smaran Jaianand <24070721037@sithyd.siu.edu.in>
---
 builtin/bugreport.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/builtin/bugreport.c b/builtin/bugreport.c
index f78c3f2aed..6b1d1accb1 100644
--- a/builtin/bugreport.c
+++ b/builtin/bugreport.c
@@ -56,7 +56,8 @@ static void get_populated_hooks(struct strbuf *hook_info, int nongit)
 }
 
 static const char * const bugreport_usage[] = {
-	N_("git bugreport [(-o | --output-directory) <path>]\n"
+	N_("git bugreport - create a bug report with diagnostic information\n"
+           "              [(-o | --output-directory) <path>]\n"
 	   "              [(-s | --suffix) <format> | --no-suffix]\n"
 	   "              [--diagnose[=<mode>]]"),
 	NULL
-- 
2.43.0


-- 
* <https://www.facebook.com/symbiosis.official/>*  
<https://www.instagram.com/symbiosis.official/>  
<https://www.linkedin.com/school/symbiosis-international-university/>  
<https://x.com/symbiosistweets> 
 




**Disclaimer:* This email is 
governed by the Disclaimer Terms of SIU, which may be viewed at 
http://siu.edu.in/disclaimer.php <http://siu.edu.in/disclaimer.php>*



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [GSoC PATCH v2] bugreport: clarify usage message purpose
  2026-03-30  6:50 ` [GSoC PATCH v2] " Smaran Jaianand
@ 2026-03-30  9:32   ` Karthik Nayak
  0 siblings, 0 replies; 7+ messages in thread
From: Karthik Nayak @ 2026-03-30  9:32 UTC (permalink / raw)
  To: Smaran Jaianand, git

[-- Attachment #1: Type: text/plain, Size: 1992 bytes --]

Smaran Jaianand <24070721037@sithyd.siu.edu.in> writes:

> From: smaran-jaianand <24070721037@sithyd.siu.edu.in>
>
> v2: Fix spacing in usage message (add missing space and remove
> trailing whitespace).

Version related changes should either go into the cover letter or below
the '---' in the commit. I would recommend reading the following
documentation

  - Documentation/SubmittingPatches
  - Documentation/CodingGuidelines
  - Documentation/MyFirstContribution.adoc

>
> Add a brief description of the bugreport command to improve
> clarity of the usage message.
>

The git command adds command description to the 'NAME' header within the
documentation. For 'git-bugreport(1)' you can find this in
'Documentation/git-bugreport.adoc'.

> Signed-off-by: smaran-jaianand <24070721037@sithyd.siu.edu.in>
> Signed-off-by: Smaran Jaianand <24070721037@sithyd.siu.edu.in>

> ---
>  builtin/bugreport.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/builtin/bugreport.c b/builtin/bugreport.c
> index f78c3f2aed..6b1d1accb1 100644
> --- a/builtin/bugreport.c
> +++ b/builtin/bugreport.c
> @@ -56,7 +56,8 @@ static void get_populated_hooks(struct strbuf *hook_info, int nongit)
>  }
>
>  static const char * const bugreport_usage[] = {
> -	N_("git bugreport [(-o | --output-directory) <path>]\n"
> +	N_("git bugreport - create a bug report with diagnostic information\n"
> +           "              [(-o | --output-directory) <path>]\n"
>  	   "              [(-s | --suffix) <format> | --no-suffix]\n"
>  	   "              [--diagnose[=<mode>]]"),
>  	NULL
> --
> 2.43.0
>
>
> --
> * <https://www.facebook.com/symbiosis.official/>*
> <https://www.instagram.com/symbiosis.official/>
> <https://www.linkedin.com/school/symbiosis-international-university/>
> <https://x.com/symbiosistweets>
>
>
>
>
>
> **Disclaimer:* This email is
> governed by the Disclaimer Terms of SIU, which may be viewed at
> http://siu.edu.in/disclaimer.php <http://siu.edu.in/disclaimer.php>*

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 690 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [GSoC PATCH] bugreport: clarify usage message purpose
  2026-03-30  6:44 [GSoC PATCH] bugreport: clarify usage message purpose Smaran Jaianand
  2026-03-30  6:50 ` [GSoC PATCH v2] " Smaran Jaianand
@ 2026-03-30 14:56 ` Junio C Hamano
  2026-03-30 17:41 ` [GSoC PATCH v3] bugreport: revert incorrect usage message change Smaran Jaianand
  2026-03-30 17:41 ` Smaran Jaianand
  3 siblings, 0 replies; 7+ messages in thread
From: Junio C Hamano @ 2026-03-30 14:56 UTC (permalink / raw)
  To: Smaran Jaianand; +Cc: git

Smaran Jaianand <24070721037@sithyd.siu.edu.in> writes:

> From: smaran-jaianand <24070721037@sithyd.siu.edu.in>
>
> Add a brief description of the bugreport command to improve
> clarity of the usage message.
>
> Signed-off-by: smaran-jaianand <24070721037@sithyd.siu.edu.in>
> ---
>  builtin/bugreport.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/builtin/bugreport.c b/builtin/bugreport.c
> index f78c3f2aed..3b3fdd4dfb 100644
> --- a/builtin/bugreport.c
> +++ b/builtin/bugreport.c
> @@ -56,7 +56,8 @@ static void get_populated_hooks(struct strbuf *hook_info, int nongit)
>  }
>  
>  static const char * const bugreport_usage[] = {
> -	N_("git bugreport [(-o | --output-directory) <path>]\n"
> +	N_("git bugreport -create a bug report with diagnostic information \n"
> +           "              [(-o | --output-directory) <path>]\n"
>  	   "              [(-s | --suffix) <format> | --no-suffix]\n"
>  	   "              [--diagnose[=<mode>]]"),
>  	NULL
> -- 
> 2.43.0

This is wrong.  The usage string is to show "usage".  Unless your
users type

    $ git bugreport -create a bug ...

from their command line, the first line that you added does not
belong there.

In general, these should match what is in the synopsis section of
the manpage (i.e., "git help bugreport" output), and there is even
a test to ensure they do not diverge from each other (iirc, t0450).


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [GSoC PATCH v3] bugreport: revert incorrect usage message change
  2026-03-30  6:44 [GSoC PATCH] bugreport: clarify usage message purpose Smaran Jaianand
  2026-03-30  6:50 ` [GSoC PATCH v2] " Smaran Jaianand
  2026-03-30 14:56 ` [GSoC PATCH] " Junio C Hamano
@ 2026-03-30 17:41 ` Smaran Jaianand
  2026-03-30 17:41 ` Smaran Jaianand
  3 siblings, 0 replies; 7+ messages in thread
From: Smaran Jaianand @ 2026-03-30 17:41 UTC (permalink / raw)
  To: git; +Cc: smaran-jaianand

From: smaran-jaianand <24070721037@sithyd.siu.edu.in>

The usage string is intended to reflect command syntax rather than
describe functionality. Revert the previous change to keep it consistent
with documentation.

Signed-off-by: Smaran Jaianand <24070721037@sithyd.siu.edu.in>
---
v3: Revert previous change after feedback that usage strings should reflect command syntax rather than description.

 builtin/bugreport.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/builtin/bugreport.c b/builtin/bugreport.c
index f78c3f2aed..6b1d1accb1 100644
--- a/builtin/bugreport.c
+++ b/builtin/bugreport.c
@@ -56,7 +56,8 @@ static void get_populated_hooks(struct strbuf *hook_info, int nongit)
 }
 
 static const char * const bugreport_usage[] = {
-	N_("git bugreport [(-o | --output-directory) <path>]\n"
+	N_("git bugreport - create a bug report with diagnostic information\n"
+           "              [(-o | --output-directory) <path>]\n"
 	   "              [(-s | --suffix) <format> | --no-suffix]\n"
 	   "              [--diagnose[=<mode>]]"),
 	NULL
-- 
2.43.0


-- 
* <https://www.facebook.com/symbiosis.official/>*  
<https://www.instagram.com/symbiosis.official/>  
<https://www.linkedin.com/school/symbiosis-international-university/>  
<https://x.com/symbiosistweets> 
 




**Disclaimer:* This email is 
governed by the Disclaimer Terms of SIU, which may be viewed at 
http://siu.edu.in/disclaimer.php <http://siu.edu.in/disclaimer.php>*



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [GSoC PATCH v3] bugreport: revert incorrect usage message change
  2026-03-30  6:44 [GSoC PATCH] bugreport: clarify usage message purpose Smaran Jaianand
                   ` (2 preceding siblings ...)
  2026-03-30 17:41 ` [GSoC PATCH v3] bugreport: revert incorrect usage message change Smaran Jaianand
@ 2026-03-30 17:41 ` Smaran Jaianand
  2026-03-30 20:08   ` Junio C Hamano
  3 siblings, 1 reply; 7+ messages in thread
From: Smaran Jaianand @ 2026-03-30 17:41 UTC (permalink / raw)
  To: git; +Cc: Smaran Jaianand

Revert the previous change to keep it consistent with documentation.
Based on the feedback, the usage string is intended to represent command syntax rather than provide a description.

Signed-off-by: Smaran Jaianand <24070721037@sithyd.siu.edu.in>
---
 builtin/bugreport.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/builtin/bugreport.c b/builtin/bugreport.c
index 6b1d1accb1..c42b61cc8f 100644
--- a/builtin/bugreport.c
+++ b/builtin/bugreport.c
@@ -56,8 +56,7 @@ static void get_populated_hooks(struct strbuf *hook_info, int nongit)
 }
 
 static const char * const bugreport_usage[] = {
-	N_("git bugreport - create a bug report with diagnostic information\n"
-           "              [(-o | --output-directory) <path>]\n"
+	N_("              [(-o | --output-directory) <path>]\n"
 	   "              [(-s | --suffix) <format> | --no-suffix]\n"
 	   "              [--diagnose[=<mode>]]"),
 	NULL
-- 
2.43.0


-- 
* <https://www.facebook.com/symbiosis.official/>*  
<https://www.instagram.com/symbiosis.official/>  
<https://www.linkedin.com/school/symbiosis-international-university/>  
<https://x.com/symbiosistweets> 
 




**Disclaimer:* This email is 
governed by the Disclaimer Terms of SIU, which may be viewed at 
http://siu.edu.in/disclaimer.php <http://siu.edu.in/disclaimer.php>*



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [GSoC PATCH v3] bugreport: revert incorrect usage message change
  2026-03-30 17:41 ` Smaran Jaianand
@ 2026-03-30 20:08   ` Junio C Hamano
  0 siblings, 0 replies; 7+ messages in thread
From: Junio C Hamano @ 2026-03-30 20:08 UTC (permalink / raw)
  To: Smaran Jaianand; +Cc: git

Smaran Jaianand <24070721037@sithyd.siu.edu.in> writes:

> Revert the previous change to keep it consistent with documentation.
> Based on the feedback, the usage string is intended to represent command syntax rather than provide a description.

You really do not have to post a patch to revert something that was
rejected and did not get applied anywhere to our tree.

We frown upon a patch series that makes mistakes in an earlier step,
only to fix them in a later step.  The "git rebase -i" command helps
us pretend to be more perfect developers than we actually are,
whipping your patch series into a shape that builds one small step
on top of another in a logical succession.  Such a patch series is
easier to understand than a history that faithfully records all the
stumbles the developer made until they reached the final solution.

If you rebuilt your changes, while removing any parts that shouldn't
be there, in an effort to pretend to be a more perfect developer,
sometimes you might end up with an empty patch, and that is OK.  You
can just send a message that you are retracting the earlier patch
and everybody would understand.

Thanks.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-30 20:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-30  6:44 [GSoC PATCH] bugreport: clarify usage message purpose Smaran Jaianand
2026-03-30  6:50 ` [GSoC PATCH v2] " Smaran Jaianand
2026-03-30  9:32   ` Karthik Nayak
2026-03-30 14:56 ` [GSoC PATCH] " Junio C Hamano
2026-03-30 17:41 ` [GSoC PATCH v3] bugreport: revert incorrect usage message change Smaran Jaianand
2026-03-30 17:41 ` Smaran Jaianand
2026-03-30 20:08   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox