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

Re: How to add daily tags for a central repo?

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Jun 1, 2010, 08:52 UTC
Message-ID
<4C04CA4F.40106@drmicha.warpmail.net>
In-Reply-To
<AANLkTinHU5z5njEpx1S_6DIR5ECauJbzWlcM95wNUVxf@mail.gmail.com>
Roy Lee venit, vidit, dixit 01.06.2010 10:25:
Show 19 quoted lines
> On Tue, Jun 1, 2010 at 4:05 PM, Michael J Gruber
> <git@drmicha.warpmail.net> wrote:
>> Roy Lee venit, vidit, dixit 01.06.2010 09:55:
>>> Hi Michael,
>>>
>> Well, as I wrote: HEAD@{datetimespec} for the HEAD,
>> branchname@{datetimespec} for a branch "branchname". datetimespec is
>> decribed in git rev-parse's manpage but can be what you'd think (e.g.
>> "date time") and more ("yesterday").
>> If you really want to inspect the reflog (not the commits listed in the
>> reflog) use "git log -g" or, unsurprisingly, "git reflog".
>>
>>> Or any alternatives for developer to query this information.
>>
>> The reflog is local to the repo, which is why you would create tags on
>> the central repo based on the reflog there, if that is your "trusted
>> time and push reference source".
> 
> Does this mean the tagging must be done on the server?
Yes.
> Is there any way to query this information from a client repo,
> do the tagging locally, and than push the tag back to the server?
No.
This answer assumes that what you want to do is the following:
* Create a tag for the state of a ref (such as HEAD) on the central repo
at a specific date and time.

No client can know this. Reflogs are local. The point of your tagging (as I understand it) is to create an authoritative date based tag, and only the central repo has the necessary info.

If you want to do something different you should say so ;) But note that committer and author dates are completely bogus from the point of view of "was in the central repo at a certain date", they have nothing to do with that.

Michael
Previous: Roy LeeNext: Roy Lee
Message 6 of 10 in “How to add daily tags for a central repo?”
  1. roylee17Jun 1, 2010
  2. Michael J GruberJun 1, 2010
  3. Roy LeeJun 1, 2010
  4. Michael J GruberJun 1, 2010
  5. Roy LeeJun 1, 2010
  6. Michael J GruberJun 1, 2010
  7. Roy LeeJun 1, 2010
  8. Ilari LiusvaaraJun 1, 2010
  9. Junio C HamanoJun 2, 2010
  10. Roy LeeJun 2, 2010

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.