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

Re: Marking abandoned branches

From
Junio C Hamano <junkio@cox.net>
Date
Sep 13, 2006, 18:40 UTC
Message-ID
<7vmz93a9v9.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.63.0609131729500.19042@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 18 quoted lines
>> Dear diary, on Wed, Sep 13, 2006 at 05:17:59PM CEST, I got a letter
>> where Jon Smirl <jonsmirl@gmail.com> said that...
>> > Abandoned branches are common in CVS since it is not distributed.
>> > People start working on something in the main repo and then decide it
>> > was a bad idea. In the git world these branches usually don't end up
>> > in the main repo.
>> 
>> Can't you just toss the branch away in that case? :-)
>> 
>> You could also stash the ref to refs/heads-abandoned/ instead of
>> refs/heads/ if you want to keep the junk around for some reason. Of
>> course you don't get the nice marker with explanation of why is this
>> abandoned and who decided that, but you can just use an empty commit for
>> the same purpose.
>
> ... or a tag (remember, you can stash a tag into refs/abandoned/, instead 
> of a commit) with the further benefit that you really cannot commit on top 
> of that.

Using tag has an added benefit that you now have a place to say why you dropped it. So what we would need to support this is an agreed-upon name under $GIT_DIR/refs/ that is omitted from display by convention across Porcelains (the core side should not ignore them because even when you are abandoning them, you do not want to lose them),

Previous: Jakub NarebskiNext: Jakub Narebski
Message 5 of 29 in “Marking abandoned branches”
  1. Jon SmirlSep 13, 2006
  2. Petr BaudisSep 13, 2006
  3. Johannes SchindelinSep 13, 2006
  4. Jakub NarebskiSep 13, 2006
  5. Junio C HamanoSep 13, 2006
  6. Jakub NarebskiSep 13, 2006
  7. Junio C HamanoSep 13, 2006
  8. Jakub NarebskiSep 13, 2006
  9. Petr BaudisSep 13, 2006
  10. Junio C HamanoSep 13, 2006
  11. Jakub NarebskiSep 13, 2006
  12. Jakub NarebskiSep 13, 2006
  13. Jakub NarebskiSep 13, 2006
  14. Jon SmirlSep 13, 2006
  15. Johannes SchindelinSep 13, 2006
  16. Jon SmirlSep 13, 2006
  17. Shawn PearceSep 13, 2006
  18. Nicolas PitreSep 13, 2006
  19. Martin LanghoffSep 13, 2006
  20. Jakub NarebskiSep 13, 2006
  21. Shawn PearceSep 13, 2006
  22. Jakub NarebskiSep 13, 2006
  23. A Large Angry SCMSep 13, 2006
  24. Shawn PearceSep 13, 2006
  25. Junio C HamanoSep 13, 2006
  26. Jakub NarebskiSep 13, 2006
  27. Jon SmirlSep 13, 2006
  28. Jakub NarebskiSep 13, 2006
  29. Sam VilainSep 14, 2006

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.