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

A proposed solution (Was: nicer frontend to get rebased tree?)

From
Theodore Tso <tytso@mit.edu>
Date
Aug 23, 2008, 23:01 UTC
Message-ID
<20080823230137.GD18169@mit.edu>
In-Reply-To
<20080823165350.GY23334@one.firstfloor.org>

Maybe what we need is a way in git to advertise that a particular branch, when pulled into another repository, shouldn't be used as a base for someone else to do development. The only question is what can we do other than give a warning if someone tries to create a local branch which tracks such a branch. One thought is to have a git config option which will forbid creating local branches that track an "rebase-unstable" branch, on the theory that the best thing to do with such workloads is to either use them as sources for "git merge" or a git checkout creating a detached HEAD.

Once you've merged a rebase-unstable remote branch into a local branch, the resulting local branch could be treated "contaminated" such that if the user tries to do any commits on such a local branch, git issues a warning that you are committing changes onto a branch which should be considered throwaway.

I guess the real question is whether we should be encoding quite this much policy into git. I think it would help make it easier to advertise what is considered the preferred workflow, and if it can all be turned off with a git-config option, people who don't want it can always turn it off.

What do folks think?
						- Ted
Previous: Theodore TsoNext: Mikael Magnusson
Message 41 of 42 in “nicer frontend to get rebased tree?”
  1. Andi KleenAug 22, 2008
  2. Linus TorvaldsAug 22, 2008
  3. Andi KleenAug 22, 2008
  4. Linus TorvaldsAug 22, 2008
  5. Paolo CiarrocchiAug 22, 2008
  6. Linus TorvaldsAug 22, 2008
  7. Björn SteinbrinkAug 22, 2008
  8. Paolo CiarrocchiAug 22, 2008
  9. Linus TorvaldsAug 22, 2008
  10. Junio C HamanoAug 22, 2008
  11. Andi KleenAug 23, 2008
  12. Paolo BonziniAug 23, 2008
  13. Andi KleenAug 23, 2008
  14. Paolo BonziniAug 23, 2008
  15. Linus TorvaldsAug 23, 2008
  16. Andi KleenAug 23, 2008
  17. Linus TorvaldsAug 23, 2008
  18. Ingo MolnarAug 25, 2008
  19. Björn SteinbrinkAug 23, 2008
  20. Linus TorvaldsAug 23, 2008
  21. Björn SteinbrinkAug 23, 2008
  22. Documentating branches (was: nicer frontend to get rebased tree?)Marius Vollmer, Aug 23, 2008
  23. Miklos VajnaAug 23, 2008
  24. Marius VollmerAug 23, 2008
  25. Marius VollmerAug 23, 2008
  26. Avery PennarunAug 22, 2008
  27. Andi KleenAug 22, 2008
  28. Paolo CiarrocchiAug 22, 2008
  29. Jakub NarebskiAug 22, 2008
  30. Andi KleenAug 23, 2008
  31. Paolo CiarrocchiAug 23, 2008
  32. Jakub NarebskiAug 23, 2008
  33. Andi KleenAug 23, 2008
  34. Paolo CiarrocchiAug 23, 2008
  35. Linus TorvaldsAug 23, 2008
  36. Paolo CiarrocchiAug 23, 2008
  37. Björn SteinbrinkAug 23, 2008
  38. Junio C HamanoAug 24, 2008
  39. Jakub NarebskiAug 23, 2008
  40. Theodore TsoAug 23, 2008
  41. A proposed solution (Was: nicer frontend to get rebased tree?)Theodore Tso, Aug 23, 2008
  42. Mikael MagnussonAug 22, 2008

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.