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

Re: [PATCH] fast-export: deal with tag objects that do not have a tagger

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 18, 2008, 23:20 UTC
Message-ID
<7viqphf4ua.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20081218213407.GX5691@genesis.frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> writes:
Show 12 quoted lines
> On Thu, Dec 18, 2008 at 08:45:44PM +0100, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
>> 	I think so.  The responsible code is in fast-export.c, in any 
>> 	case.  Of course, fast-import refuses to import a tag without a 
>> 	tagger, so...
>
> That's why I asked. I think it's a reasonable assumption that in most
> cases the tagger and the committer of the tagged commit is the same. So
> in case the tagger info is missing and we tag a commit, we could fake
> that info on export.
>
> Obviously this should not be the default, but I think such a mode would
> be useful in real-life.

Such a "faking" can well be done, and should be done, on the consuming end of the information. If you fake using the commit authorship, you would never be able to tell from the result which one is faked and which one is genuine.

I think you'd rather want to see "Unspecified Tagger" in the resulting tag object (or even better, a tag object without the tagger field created by the fast-import process), and leave the interpretation of missing tagger information to the consumers.

Previous: Miklos VajnaNext: Miklos Vajna
Message 5 of 11 in “git-fast-export and tags without a tagger”
  1. Miklos VajnaDec 18, 2008
  2. Junio C HamanoDec 18, 2008
  3. fast-export: deal with tag objects that do not have a taggerJohannes Schindelin, Dec 18, 2008
  4. Miklos VajnaDec 18, 2008
  5. Junio C HamanoDec 18, 2008
  6. Miklos VajnaDec 18, 2008
  7. fast-export: deal with tag objects that do not have a taggerJohannes Schindelin, Dec 20, 2008
  8. fast-import: make tagger information optionalJunio C Hamano, Dec 20, 2008
  9. Miklos VajnaDec 20, 2008
  10. Shawn O. PearceDec 20, 2008
  11. Miklos VajnaDec 18, 2008

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.