# Wishlist: Please add --author to git-tag

7 messages from 2008-01-31 to 2008-02-18. Participants: Daniel Baumann, Pierre Habouzit, Carlos Rica, Johannes Schindelin, Rhodes, Kate, Nicolas Pitre.
Thread: https://gitlist.dev/t/11807

## Daniel Baumann, 2008-01-31 17:27

Subject: Wishlist: Please add --author to git-tag
Message-ID: <47A20503.2000603@debian.org>
URL: https://gitlist.dev/e/47A20503.2000603%40debian.org

```
Hi,

git commit supports --author to overwrite the author information on a
particular commit; it would be nice if git tag would offer the same.

Regards,
Daniel

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          daniel.baumann@panthera-systems.net
Internet:       http://people.panthera-systems.net/~daniel-baumann/

```

## Pierre Habouzit, 2008-01-31 19:35

Subject: Re: Wishlist: Please add --author to git-tag
Message-ID: <20080131193550.GB10905@artemis.madism.org>
URL: https://gitlist.dev/e/20080131193550.GB10905%40artemis.madism.org
In-Reply-To: <47A20503.2000603@debian.org>

```
On Thu, Jan 31, 2008 at 05:27:31PM +0000, Daniel Baumann wrote:
> Hi,
> 
> git commit supports --author to overwrite the author information on a
> particular commit; it would be nice if git tag would offer the same.

  Meanwhile,

  GIT_AUTHOR_NAME="John Doe" GIT_AUTHOR_EMAIL=luser@example.com git tag

  Will work
-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

```

## Carlos Rica, 2008-01-31 22:49

Subject: Re: Wishlist: Please add --author to git-tag
Message-ID: <1b46aba20801311449l774a6213kc33c49c0682c0228@mail.gmail.com>
URL: https://gitlist.dev/e/1b46aba20801311449l774a6213kc33c49c0682c0228%40mail.gmail.com
In-Reply-To: <20080131193550.GB10905@artemis.madism.org>

```
On Jan 31, 2008 8:35 PM, Pierre Habouzit <madcoder@debian.org> wrote:
> On Thu, Jan 31, 2008 at 05:27:31PM +0000, Daniel Baumann wrote:
> > Hi,
> >
> > git commit supports --author to overwrite the author information on a
> > particular commit; it would be nice if git tag would offer the same.
>
>   Meanwhile,
>
>   GIT_AUTHOR_NAME="John Doe" GIT_AUTHOR_EMAIL=luser@example.com git tag

That didn't work for me, but perhaps I'm not understanding what this user wants
to do. I think it is about to create a tag object having another
author different from committer.

In such case, and looking at builtin-commit.c, I see that the code needed
could came from the function determine_author_info(), just the part using
force_author variable, to be added in the create_tag() function from
builtin-tag.c.

The only thing I don't know is if this should be different from
git-commit in which
both "author" and "committer" fields are supplied and only "author" can be
changed this way, preserving the committer. In git-tag, only the committer is
included in the tag object, written as the "tagger".

Please, correct me if I'm wrong.

Regards.
Carlos.

```

## Johannes Schindelin, 2008-01-31 23:48

Subject: Re: Wishlist: Please add --author to git-tag
Message-ID: <alpine.LSU.1.00.0801312345520.23907@racer.site>
URL: https://gitlist.dev/e/alpine.LSU.1.00.0801312345520.23907%40racer.site
In-Reply-To: <1b46aba20801311449l774a6213kc33c49c0682c0228@mail.gmail.com>

```
Hi,

On Thu, 31 Jan 2008, Carlos Rica wrote:

> On Jan 31, 2008 8:35 PM, Pierre Habouzit <madcoder@debian.org> wrote:
> > On Thu, Jan 31, 2008 at 05:27:31PM +0000, Daniel Baumann wrote:
> >
> > > git commit supports --author to overwrite the author information on 
> > > a particular commit; it would be nice if git tag would offer the 
> > > same.
> >
> >   Meanwhile,
> >
> >   GIT_AUTHOR_NAME="John Doe" GIT_AUTHOR_EMAIL=luser@example.com git tag
> 
> That didn't work for me,

Hey jasam, good to see you again.

I think that you have to use "-s" or "-a" for the author information to 
take effect (IOW a lightweight tag will not pick it up, since it is only a 
41-byte file, and does not change the object database).

Ciao,
Dscho

```

## Carlos Rica, 2008-02-01 14:48

Subject: Re: Wishlist: Please add --author to git-tag
Message-ID: <1b46aba20802010648j6f305cbve55d50d1ead74a73@mail.gmail.com>
URL: https://gitlist.dev/e/1b46aba20802010648j6f305cbve55d50d1ead74a73%40mail.gmail.com
In-Reply-To: <alpine.LSU.1.00.0801312345520.23907@racer.site>

```
On Feb 1, 2008 12:48 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> Hi,
>
> On Thu, 31 Jan 2008, Carlos Rica wrote:
>
> > On Jan 31, 2008 8:35 PM, Pierre Habouzit <madcoder@debian.org> wrote:
> > > On Thu, Jan 31, 2008 at 05:27:31PM +0000, Daniel Baumann wrote:
> > >
> > > > git commit supports --author to overwrite the author information on
> > > > a particular commit; it would be nice if git tag would offer the
> > > > same.
> > >
> > >   Meanwhile,
> > >
> > >   GIT_AUTHOR_NAME="John Doe" GIT_AUTHOR_EMAIL=luser@example.com git tag
> >
> > That didn't work for me,
>
> Hey jasam, good to see you again.
>
> I think that you have to use "-s" or "-a" for the author information to
> take effect (IOW a lightweight tag will not pick it up, since it is only a
> 41-byte file, and does not change the object database).

This way it doesn't work for me either. You know, the tag object has
only a "tagger", who is always the committer. Currently, I'm inspecting
the resulting object using "git cat-file tag t". I cannot find where that author
name specified in the command line should be stored for tags.

It is nice to see you too!
Carlos

```

## Rhodes, Kate, 2008-02-16 19:49

Subject: Re: Wishlist: Please add --author to git-tag
Message-ID: <420D37FF-C808-47CA-A3C8-38E1F8578FAC@gmail.com>
URL: https://gitlist.dev/e/420D37FF-C808-47CA-A3C8-38E1F8578FAC%40gmail.com
In-Reply-To: <47A20503.2000603@debian.org>

```

On Jan 31, 2008, at 12:27 PM, Daniel Baumann wrote:

> git commit supports --author to overwrite the author information on a
> particular commit; it would be nice if git tag would offer the same.

What are the implications of this on the GPG signature aspect of git- 
tag (desired or otherwise)?

If you were committing someone else's tag wouldn't you want to sign  
not only the commit, but their signature on the commit?

Ignoring the GPG issue, I'm just not seeing the benefit to having an  
author AND a committer on a tag. I mean... it's a *tag*. The only  
value I see in having any name associated with a tag is knowing who to  
point the finger at when the wrong thing gets tagged. But, I don't see  
any authorship aspect to the concept of a tag. To me it's more: "Bob"  
set it and it points to this. The end.

What you're proposing sounds more like: "Bob" said to set it and then  
"Mary" did, because Bob said to.

P.S.  When the right thing is tagged there's generally no need to know  
who did it. I don't care if Linus tags the latest kernel release or  
one of his lieutenants. All I care is that everyone's in agreement  
that whatever that tag points to is the next release. Who tags  
something doesn't change the value of what was tagged.

-masukomi

```

## Nicolas Pitre, 2008-02-18 00:00

Subject: Re: Wishlist: Please add --author to git-tag
Message-ID: <alpine.LFD.1.00.0802171859010.2732@xanadu.home>
URL: https://gitlist.dev/e/alpine.LFD.1.00.0802171859010.2732%40xanadu.home
In-Reply-To: <420D37FF-C808-47CA-A3C8-38E1F8578FAC@gmail.com>

```
On Sat, 16 Feb 2008, Rhodes, Kate wrote:

> 
> On Jan 31, 2008, at 12:27 PM, Daniel Baumann wrote:
> 
> > git commit supports --author to overwrite the author information on a
> > particular commit; it would be nice if git tag would offer the same.
> 
> What are the implications of this on the GPG signature aspect of git-tag
> (desired or otherwise)?
> 
> If you were committing someone else's tag wouldn't you want to sign not only
> the commit, but their signature on the commit?
> 
> Ignoring the GPG issue, I'm just not seeing the benefit to having an author
> AND a committer on a tag. I mean... it's a *tag*. The only value I see in
> having any name associated with a tag is knowing who to point the finger at
> when the wrong thing gets tagged. But, I don't see any authorship aspect to
> the concept of a tag. To me it's more: "Bob" set it and it points to this. The
> end.
> 
> What you're proposing sounds more like: "Bob" said to set it and then "Mary"
> did, because Bob said to.

And in that case this information can be contained in the tag text body 
itself.


Nicolas

```
