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

Re: RFC: reflog for deleted branches

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
May 4, 2012, 06:27 UTC
Message-ID
<4FA376B5.50804@dewire.com>
In-Reply-To
<7vwr4sdfw7.fsf@alter.siamese.dyndns.org>
Junio C Hamano skrev 2012-05-04 01.05:
Show 7 quoted lines
> Sven Strickroth <sven.strickroth@tu-clausthal.de> writes:
>
>> The "normal" reflog cannot be used if you just create and then delete a
>> branch - the reflog is empty in this case.
>
> I somehow thought we discussed about the lack of "creation" event.
> Perhaps it is sufficient to create a reflog entry for such then?

We have the create event (oldd=0000...), if we just don't delete the log and add a destroy event (newid=000000).

A bit trickier with the current reflog design is the case where you delete branch foo and then create the branch foo/bar. One way would be to append a "." to the leaf in the refs directory tree. Older readers wouldn't understand that to there's a compatibility issue.

-- robin
Previous: Sven StrickrothNext: Junio C Hamano
Message 6 of 9 in “RFC: reflog for deleted branches”
  1. Sven StrickrothMay 3, 2012
  2. Junio C HamanoMay 3, 2012
  3. Sven StrickrothMay 3, 2012
  4. Junio C HamanoMay 3, 2012
  5. Sven StrickrothMay 3, 2012
  6. Robin RosenbergMay 4, 2012
  7. Junio C HamanoMay 4, 2012
  8. Andrew SayersMay 3, 2012
  9. Sitaram ChamartyMay 4, 2012

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.