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

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

From
RLRoy Lee <roylee17@gmail.com>
Date
Jun 1, 2010, 07:55 UTC
Message-ID
<AANLkTim02FQ3BfV88iylMqbHA5sBbJvp5TmWg52OXCzn@mail.gmail.com>
In-Reply-To
<4C04AC1E.7040502@drmicha.warpmail.net>
Hi Michael,
Show 17 quoted lines
>
> Having these tags seems strange to me. Imagine someone pushing a patch
> series one-by-one around midnight, or pushing a commit and, shortly
> after, a fixup. You'll end up with a tag pointing to a commit in the middle.
>
> The commit time is totally unreliable, as you noticed, also because
> authors may commit locally, then push later.
>
> That being said, if you're really interested in the state of a branch on
> the central server at a certain point in time it's easiest to enable
> reflogs on the central repository (by setting core.logAllRefUpdates or
> enabling individually) and to tag the commit HEAD@{datetimespec} (or
> branchname@...). No need for cloning.
>
> Cheers,
> Michael
>
This is what I'm looking for. Thanks a lot.

But I have another question: How to use the refspec to refer to the reflogs? Or any alternatives for developer to query this information.

Regards, Roy

Previous: Michael J GruberNext: Michael J Gruber
Message 3 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.