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

Re: ghost refs

From
Jay Soffian <jaysoffian@gmail.com>
Date
Apr 20, 2010, 13:33 UTC
Message-ID
<s2m76718491004200633la1cb07a6n8bc0d8d8e71b4e92@mail.gmail.com>
In-Reply-To
<20100420115124.GB22907@coredump.intra.peff.net>
On Tue, Apr 20, 2010 at 7:51 AM, Jeff King <peff@peff.net> wrote:
Show 12 quoted lines
> Almost. The complication is that a branch "foo" prevents any branch
> "foo/bar" from being created. So if you leave the reflog in place, you
> are blocking the creation of the reflog for a new branch.
>
> So you need some solution to that problem. Things I thought of are:
>
>  1. Leave the reflog in place until such a foo/bar branch is created.
>     [...]
>  2. Make a refs/dead hierarchy so that the reflogs don't interfere with
>     [...]
>  3. Stick everything in a big "graveyard" reflog. I think there are
>     [...]
4. Just append to the existing reflog? Given:

$ git checkout -b topic origin/master # 1 $ git add; git commit ... $ git checkout master $ git merge topic $ git branch -d topic $ git checkout -b topic origin/master # 2

Whose to say that the branch named topic from (1) and the branch named topic from (2) are unrelated? Isn't the fact that they have the same name is an indication that they are likely to be related. And even if they are unrelated, what's wrong with re-using the same reflog?

Wouldn't it be obvious what happened? e.g.:

64c7587 topic@{0}: branch: Created from HEAD abcdef3 topic@{1}: branch: deleted topic <---- I made this one up 3568c4b topic@{2}: commit: turned the knob to 11 707d9fb topic@{3}: branch: Created from HEAD

j.
Previous: ZeframNext: Jeff King
Message 25 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.