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

Re: RFC: reflog for deleted branches

From
SSSven Strickroth <sven.strickroth@tu-clausthal.de>
Date
May 3, 2012, 22:10 UTC
Message-ID
<4FA30270.6000806@tu-clausthal.de>
In-Reply-To
<7vaa1pdjz8.fsf@alter.siamese.dyndns.org>
Am 03.05.2012 23:37 schrieb Junio C Hamano:
> The itch is legit, but I doubt a "special log for deleted branches" is a
> good design.  Why do you limit yourself only to a single "last" commit?
That was just the first idea ;)
> Wouldn't it be a better design to save away the entire reflog for the
> branch when a branch is deleted, possibly with expedited expire rule for
> such a reflog?

The "normal" reflog cannot be used if you just create and then delete a branch - the reflog is empty in this case. A special "deleted" entry pointing to the SHA1 of the branch is needed. Also the question is how to handle the case that a user creates and deletes a new branch with the same name.

All in all, I (and lots of other users) would be happy if this issue could be addressed in one of the next releases. :)

-- 
Best regards,
 Sven Strickroth
 ClamAV, a GPL anti-virus toolkit   http://www.clamav.net
 PGP key id F5A9D4C4 @ any key-server
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 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.