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

Re: Collection of stgit issues and wishes

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 21, 2006, 11:39 UTC
Message-ID
<emdrl2$bkl$1@sea.gmane.org>
In-Reply-To
<b0943d9e0612110459y4009ce7fl44ceaa4bad33edf3@mail.gmail.com>
[Cc: git@vger.kernel.org]
Catalin Marinas wrote:
Show 8 quoted lines
> BTW, if it's not clear for me how to initially structure a patch
> series, I add everything to a patch and create underlying patches
> afterwards and pick hunks from the big one (usually manually, though
> native support in StGIT for this would be good, as someone pointed out
> on this list). If all the hunks in the big patch were added to other
> patches, pushing the big one should result in an empty patch
> automatically (because of the three-way merging) and can be safely
> removed.

Perhaps this calls for "stg duplicate" command, which would result in duplicating patch (perhaps one would need to provide name for the first patch, and optionally laso for second patch) in such way that first copy would be on top of aplied stack, and second copy (the duplicate, with an old name) would be at the bottom of the deck of unapplied patches.

This way if you want to for example split patch into two, you would do

$ stg duplicate new-name $ edit files $ stg refresh $ stg push

And similarly (with more duplicates) if you want to split it more.
What do you think about this?
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Catalin MarinasNext: Yann Dirson
Message 19 of 22 in “Collection of stgit issues and wishes”
  1. Yann DirsonDec 8, 2006
  2. Jakub NarebskiDec 8, 2006
  3. Jakub NarebskiDec 10, 2006
  4. Jakub NarebskiDec 10, 2006
  5. Catalin MarinasDec 10, 2006
  6. Yann DirsonDec 17, 2006
  7. Catalin MarinasDec 12, 2006
  8. Jakub NarebskiDec 12, 2006
  9. David KågedalDec 13, 2006
  10. Andreas EricssonDec 13, 2006
  11. Karl HasselströmDec 13, 2006
  12. Yann DirsonDec 17, 2006
  13. Jakub NarebskiDec 10, 2006
  14. Catalin MarinasDec 10, 2006
  15. Jakub NarebskiDec 10, 2006
  16. Catalin MarinasDec 10, 2006
  17. Jakub NarebskiDec 10, 2006
  18. Catalin MarinasDec 11, 2006
  19. Jakub NarebskiDec 21, 2006
  20. Yann DirsonDec 11, 2006
  21. Catalin MarinasDec 13, 2006
  22. Jakub NarebskiDec 21, 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.