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

Re: Should GIT_AUTHOR_{NAME,EMAIL} set the tagger name/email?

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Sep 1, 2012, 16:06 UTC
Message-ID
<CACBZZX4Egrx_vrKNV68pL8DL4xkLd5j8o-1t4+fA7+Ai758-9g@mail.gmail.com>
In-Reply-To
<m2ehmlwxb2.fsf@igel.home>
On Sat, Sep 1, 2012 at 5:57 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
Show 6 quoted lines
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>
>>     git --no-pager show tag-name-1 | grep ^Author
>
> A tag doesn't have an author, it has a tagger.  This shows the author of
> the *commit*.

I got the grep wrong, I meant that I expected the tagger to be set according to GIT_AUTHOR_{NAME,EMAIL}, but it isn't either:

    $ sh /tmp/test-tag.sh
    Initialized empty Git repository in /tmp/test-git/.git/
    [master (root-commit) f83fc11] README: testing content
     1 file changed, 1 insertion(+)
     create mode 100644 README
    Author: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
    [master ef65731] README: testing content again
     1 file changed, 1 insertion(+), 1 deletion(-)
    Author: Test User <test@example.com>
    Tagger: Test User <test@example.com>
    Author: Test User <test@example.com>
    Tagger: Test User <test@example.com>
    Author: Test User <test@example.com>
Show 5 quoted lines
>>     GIT_AUTHOR_NAME="Tag Test User"
>> GIT_AUTHOR_EMAIL="tagtest@example.com" git tag -a -m"another annotated
>> tag" tag-name-2
>
> The tagger is controlled by the committer info.
I don't get what you mean, what committer info?
Previous: Andreas SchwabNext: Andreas Schwab
Message 3 of 7 in “Should GIT_AUTHOR_{NAME,EMAIL} set the tagger name/email?”
  1. Ævar Arnfjörð BjarmasonSep 1, 2012
  2. Andreas SchwabSep 1, 2012
  3. Ævar Arnfjörð BjarmasonSep 1, 2012
  4. Andreas SchwabSep 1, 2012
  5. Ævar Arnfjörð BjarmasonSep 11, 2012
  6. Junio C HamanoSep 11, 2012
  7. demerphqSep 11, 2012

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.