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

Re: [PATCH] ident: say whose identity is missing when giving user.name hint

From
AAAlvaro Aleman <aaleman@redhat.com>
Date
Aug 21, 2020, 21:31 UTC
Message-ID
<CAOW=8D1nFgRRPyD7yxW2X7ZcAA3yaMzWJy7B3ykuPBJk3t8X5Q@mail.gmail.com>
In-Reply-To
<xmqq1rjz8zy7.fsf@gitster.c.googlers.com>

One nit though: There is no `--committer` flag for `git commit`, unless this has changed after the v2.28.0 release:

``` $ g commit -m message --committer someone@somemail.com error: unknown option `committer' $ git --version git version 2.28.0 ```

On Fri, Aug 21, 2020 at 5:13 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
>
> Eric Sunshine <sunshine@sunshineco.com> writes:
>
> >     If `user.name` and `user.email` have not been configured and the
> >     user invokes:
> >
> >         git commit --author=...
> >
> >     without without specifying `--committer=`, then Git errors out
> >     with a message asking the user to configure `user.name` and
> >     `user.email` but doesn't tell the user which attribution was
> >     missing. This can be confusing for a user new to Git who isn't
> >     aware of the distinction between user, author, and committer.
> >     Give such users a bit more help by extending the error message to
> >     also say which attribution is expected.
>
> Much easier to read.  Will steal.
>
Previous: Junio C HamanoNext: Eric Sunshine
Message 8 of 10 in “--author arg on commit only works if there is an email configured already”
  1. Alvaro AlemanAug 21, 2020
  2. Andreas SchwabAug 21, 2020
  3. Junio C HamanoAug 21, 2020
  4. Alvaro AlemanAug 21, 2020
  5. ident: say whose identity is missing when giving user.name hintJunio C Hamano, Aug 21, 2020
  6. Eric SunshineAug 21, 2020
  7. Junio C HamanoAug 21, 2020
  8. Alvaro AlemanAug 21, 2020
  9. Eric SunshineAug 21, 2020
  10. Junio C HamanoAug 21, 2020

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.