git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] fix: include the type flag in the cli docs

From
Matheus Felipe <matheusfelipeog@protonmail.com>
Date
Mar 4, 2022, 03:56 UTC
Message-ID
<Uywg4gVveJ2mBefUUQDfm4i2U4gv2dk_MDNu1GhqklSMya5McKJ7n8enKWDFq_mWrfWlSDlxwSVBNwEAuq27osjfDNJziIy0EIE0nsVmsqM=@protonmail.com>
In-Reply-To
<220228.86a6ea38z9.gmgdl@evledraar.gmail.com>
Show 15 quoted lines
> On 26/02/22 12.34, Matheus Felipe via GitGitGadget wrote:
>
> > From: Matheus Felipe matheusfelipeog@protonmail.com
> > When the `git config --global --help` command is invoked,
> > the cli documentation is shown in the terminal with a small
> > error in one of the values of the Type group, which is the
> > absence of the type flag in the `--type` argument.
> > This commit fixes that.
>
> What about the commit message below?
>
> ```
> The usage help for --type option of `git config` is missing `type`
> in the argument placeholder (`<>`). Add it.
> ```
This commit message just got better, thanks. I will update with this message.
> > - OPT_CALLBACK('t', "type", &type, "", N_("value is given this type"), option_parse_type),
> > + OPT_CALLBACK('t', "type", &type, N_("type"), N_("value is given this type"), option_parse_type),
>
> The help should be `give the value the specified type`.
About the help message, I believe the current one is adequate, as Junio C Hamano well described.
It is also worth remembering that PR proposes a change from "" to "type" only, as recalled by Ævar Arnfjörð Bjarmason.
Previous: Ævar Arnfjörð BjarmasonNext: Matheus Felipe via GitGitGadget
Message 5 of 9 in “fix: include the type flag in the cli docs”
  1. fix: include the type flag in the cli docsMatheus Felipe via GitGitGadget, Feb 26, 2022
  2. Bagas SanjayaFeb 27, 2022
  3. Junio C HamanoFeb 27, 2022
  4. Ævar Arnfjörð BjarmasonFeb 28, 2022
  5. Matheus FelipeMar 4, 2022
  6. fix: include the type flag in the cli docsMatheus Felipe via GitGitGadget, Mar 4, 2022
  7. Junio C HamanoMar 4, 2022
  8. Matheus FelipeMar 4, 2022
  9. config: correct "--type" option in "git config -h" outputMatheus Felipe via GitGitGadget, Mar 4, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.