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

Re: [PATCH 1/1] git-config.1: remove value from positional args in unset usage

From
Patrick Steinhardt <ps@pks.im>
Date
Oct 8, 2024, 12:37 UTC
Message-ID
<ZwUnhPbpwtA1MM34@pks.im>
In-Reply-To
<20241008040749.69801-2-joshiheinrichs@gmail.com>
On Mon, Oct 07, 2024 at 10:07:49PM -0600, Josh Heinrichs wrote:
> A single positional argument appears to be enforcecd at
> builtin/config.c:993. Values need to be provided via --value.
Good catch!
Two comments regarding the commit message:
  - You are missing the Signed-off-by tag.
  - Our commit messages are typically structured such that they first
    give an observation of the issue and why it is an issue, followed by
    a proposed solution and imperative instructions for the code to
    become so.
So something like the following:
  The synopsis for the `git config unset` command mentions two
  positional arguments `<name>` and `<value>`. While the first
  positional argument is indeed correct, the second one is not. Instead,
  users are expected to pass in the value via the `--value=<value>`
  option.
  Remove the positional argument. The `--value=<value>` option is
  already documented correctly, so this is all we need to do to fix up
  the documentation.
Other than that the change looks good to me, thanks!
Patrick
Previous: Josh HeinrichsNext: Josh Heinrichs
Message 3 of 7 in “Remove value from positional args in config unset usage”
  1. 0/1 Remove value from positional args in config unset usageJosh Heinrichs, Oct 8, 2024
  2. 1/1 git-config.1: remove value from positional args in unset usageJosh Heinrichs, Oct 8, 2024
  3. Patrick SteinhardtOct 8, 2024
  4. 0/1 Remove value from position args in config unset usageJosh Heinrichs, Oct 8, 2024
  5. 1/1 git-config.1: remove value from positional args in unset usageJosh Heinrichs, Oct 8, 2024
  6. Junio C HamanoOct 8, 2024
  7. Patrick SteinhardtOct 9, 2024

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.