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

Re: rethinking patch management with GIT / topgit

From
TKThomas Koch <thomas@koch.ro>
Date
Mar 22, 2010, 07:59 UTC
Message-ID
<201003220859.41820.thomas@koch.ro>
In-Reply-To
<20100321203626.GE3533@machine.or.cz>
Hi Petr,
Petr Baudis:
Show 12 quoted lines
> On Sat, Mar 20, 2010 at 07:53:34PM +0100, Thomas Koch wrote:
> > Petr Baudis:
> >   - tg recreate <patchset> <newbase> <new patchset name>
> >     Creates a new patchset with root <newbase> by creating new patch
> > branches for each patch branch in <patchset>
> >     This command is useful if you need to keep the old patchset to
> > maintain an older version of your Debian package.
> 
> This means wiping out history again; in TopGit, you would ideally
> checkpoint all the branches within the patchset, then just tg update
> your branches. It's another matter that the former is now difficult to
> do easily.

It's not necessary to lose history. Creating a new patchset from a given patchset could be done in at least three different ways. Given that you've a patchset named patches-x.y.z/* and you'd like to create patches-x.y.z+1/* from this, you could

- checkout new patch branches from the top of the old patch branches and merge 
upstream into each of them
- recreate (like rebase) the full history of the patch branches on top of the 
new upstream
- collapse the branch history and create one commit per patch branch on top of 
the new upstream
In all three cases you're free to either keep or throw away the old patchset.
Best regards,
Thomas Koch, http://www.koch.ro
Previous: Petr BaudisNext: Petr Baudis
Message 5 of 7 in “rethinking patch management with GIT / topgit”
  1. Thomas KochMar 20, 2010
  2. Petr BaudisMar 20, 2010
  3. Thomas KochMar 20, 2010
  4. Petr BaudisMar 21, 2010
  5. Thomas KochMar 22, 2010
  6. Petr BaudisMar 22, 2010
  7. Thomas KochMar 23, 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.