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

Re: ghost refs

From
YDYann Dirson <yann.dirson@bertin.fr>
Date
Apr 20, 2010, 07:02 UTC
Message-ID
<loom.20100420T085842-887@post.gmane.org>
In-Reply-To
<20100407210010.GB27012@coredump.intra.peff.net>
Jeff King <peff <at> peff.net> writes:
Show 12 quoted lines
> On Wed, Apr 07, 2010 at 12:58:33PM -0400, Avery Pennarun wrote:
> 
> > This is on purpose, based on the theory that you don't want to lose
> > data from your local repo just because someone (accidentally?) deletes
> > a branch on the remote server.  Unfortunately, this theory is a bit
> > flawed, since someone could just as easily overwrite the remote branch
> > with a totally different commit, and you'd still lose it in *that*
> > case.  So mostly it's just confusing.
> 
> You do have a reflog in the case of overwrite. Delete kills off any
> associated reflog (it would be cool if we had a "graveyard" reflog that
> kept deleted branch reflogs around for a while).

Wouldn't it jus be sufficient to keep reflogs on branch deletion, and let reflog entries subject be expired by gc just like for any branch, so that way we may only need to gc the reflog itself when it becomes empty ?

-- 
Yann
Previous: John DlugoszNext: Jeff King
Message 20 of 30 in “ghost refs”
  1. John DlugoszApr 7, 2010
  2. Avery PennarunApr 7, 2010
  3. Jeff KingApr 7, 2010
  4. John DlugoszApr 7, 2010
  5. Avery PennarunApr 7, 2010
  6. John DlugoszApr 7, 2010
  7. Avery PennarunApr 7, 2010
  8. Jeff KingApr 8, 2010
  9. John DlugoszApr 8, 2010
  10. Junio C HamanoApr 8, 2010
  11. Jeff KingApr 8, 2010
  12. Junio C HamanoApr 8, 2010
  13. Avery PennarunApr 8, 2010
  14. Nicolas SebrechtApr 8, 2010
  15. Jeff KingApr 17, 2010
  16. Junio C HamanoApr 17, 2010
  17. Jakub NarebskiApr 17, 2010
  18. Junio C HamanoApr 18, 2010
  19. John DlugoszApr 19, 2010
  20. Yann DirsonApr 20, 2010
  21. Jeff KingApr 20, 2010
  22. ZeframApr 20, 2010
  23. Yann DirsonApr 20, 2010
  24. ZeframApr 20, 2010
  25. Jay SoffianApr 20, 2010
  26. Jeff KingApr 20, 2010
  27. Yann DirsonApr 20, 2010
  28. Jay SoffianApr 20, 2010
  29. Alex RiesenApr 20, 2010
  30. Jeff KingApr 20, 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.