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

Re: [PATCH] tag: generate useful reflog message

From
CWCornelius Weig <cornelius.weig@tngtech.com>
Date
Feb 6, 2017, 16:54 UTC
Message-ID
<dad6002e-a31c-3be6-3141-2e9e678742b1@tngtech.com>
In-Reply-To
<xmqqo9yg43uo.fsf@gitster.mtv.corp.google.com>
On 02/06/2017 12:25 AM, Junio C Hamano wrote:
> cornelius.weig@tngtech.com writes
> For a tag, I would imagine something like "tag: tagged 4e59582ff7
> ("Seventh batch for 2.12", 2017-01-23)" would be more appropriate.

Yes, I agree that this is much clearer. The revised version v3 implements this behavior.

Show 13 quoted lines
>> Notes:
>>     While playing around with tag reflogs I also found a bug that was present
>>     before this patch. It manifests itself when the sha1-ref in the reflog does not
>>     point to a commit object but something else.
> 
> I think the fix would involve first ripping out the "reflog walking"
> code that was bolted on and stop allowing it to inject the entries
> taken from the reflog into the "walk the commit DAG" machinery.
> Then "reflog walking" code needs to be taught to have its own "now
> we got a single object to show, show it (using the helper functions
> to show a single object that is already used by 'git show')" code,
> instead of piggy-backing on the output codepath used by "log" and
> "rev-list".

I'll start investigating how that could be done. My first glance tells me that it won't be easy. Especially because I'm not yet familiar with the git code.

Thanks for your advice!
Previous: cornelius.weig@tngtech.com
Message 12 of 12 in “tag: generate useful reflog message”
  1. tag: generate useful reflog messagecornelius.weig@tngtech.com, Feb 5, 2017
  2. tag: generate useful reflog messagecornelius.weig@tngtech.com, Feb 5, 2017
  3. Junio C HamanoFeb 5, 2017
  4. tag: generate useful reflog messagecornelius.weig@tngtech.com, Feb 6, 2017
  5. Junio C HamanoFeb 6, 2017
  6. tag: generate useful reflog messagecornelius.weig@tngtech.com, Feb 6, 2017
  7. tag: generate useful reflog messagecornelius.weig@tngtech.com, Feb 6, 2017
  8. Junio C HamanoFeb 8, 2017
  9. Cornelius WeigFeb 8, 2017
  10. Junio C HamanoFeb 8, 2017
  11. tag: generate useful reflog messagecornelius.weig@tngtech.com, Feb 8, 2017
  12. Cornelius WeigFeb 6, 2017

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.