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

Re: What's cooking in git/spearce.git (topics)

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 23, 2007, 19:00 UTC
Message-ID
<7vtzoh7j1l.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071023120338.GG27132@thunk.org>
Theodore Tso <tytso@mit.edu> writes:
Show 15 quoted lines
> With git.git, we are essentially throwing away development history
> while it is in 'pu', but once a commit graduates to 'next', we do keep
> the development history forever.  The downside to this is that
> development 'crud' can build up in next; even if all substantive
> commits in 'next' end up graduating to 'master', there will still be
> lots of merge commits that will only be in 'next'.   
>
> I have an emotional bias which tends to treat that excess history as
> toxic waste to be avoided at all costs, but that's probably because
> when you have a git tree as huge as the kernel, life is easier if the
> history is kept as clean as possible.  
>
> Which I suppose is easy enough to do in the git.git model; if you
> throw away the 'next' branch and then rewind it so it is forked off of
> 'master' all of that history essentially gets flushed.

You can view 'next' as if it is sort of -mm. Following 'master' is like following Linus tree, whose development is without those numerous 'merge improvements again' merges into 'next'.

Show 7 quoted lines
> The downside
> is that people maintaining topics branches which were forked against
> the old 'next' will need to do some grotty work to rebase their
> patches, so any attempt to rewind next would probably require the
> central maintainer to give plenty of notice, and then on the flag day,
> save 'next' as 'old-next' before rewinding to allow the other
> developers to more easily rebase any private branches they might have.

An alternative is to give an easier access to the tips of individual topic branch head, at least to the ones that have been merged to 'next' as they will never be rewound once they are in 'next', and encourage people to fork off of them, instead of 'next' directly. Then 'next' will be more like 'pu'.

> Hmm, interesting.  A lot of this is quite subtle, or at least the
> impacts of different choices in the git workflow really didn't become
> obvious to me until I started trying I stepped into the central
> maintainer role for a project using git!
Very true.
Previous: Daniel BarkalowNext: Theodore Tso
Message 18 of 21 in “What's cooking in git/spearce.git (topics)”
  1. Shawn O. PearceOct 16, 2007
  2. Johannes SchindelinOct 16, 2007
  3. Theodore TsoOct 16, 2007
  4. Shawn O. PearceOct 17, 2007
  5. Junio C HamanoOct 23, 2007
  6. Theodore TsoOct 23, 2007
  7. Junio C HamanoOct 23, 2007
  8. Theodore TsoOct 23, 2007
  9. Shawn O. PearceOct 23, 2007
  10. Theodore TsoOct 23, 2007
  11. Shawn O. PearceOct 23, 2007
  12. Theodore TsoOct 23, 2007
  13. Shawn O. PearceOct 23, 2007
  14. Theodore TsoOct 23, 2007
  15. Shawn O. PearceOct 23, 2007
  16. Theodore TsoOct 23, 2007
  17. Daniel BarkalowOct 23, 2007
  18. Junio C HamanoOct 23, 2007
  19. Theodore TsoOct 24, 2007
  20. Shawn O. PearceOct 23, 2007
  21. Shawn O. PearceOct 16, 2007

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.