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

Re: Creating a patch set with git-format-patch

From
Stephan Beyer <s-beyer@gmx.net>
Date
Apr 10, 2008, 11:55 UTC
Message-ID
<20080410115523.GD8157@leksak.fem-net>
In-Reply-To
<20080410105610.GB29742@atjola.homenet>
Hi,
> Just create a branch for you work, then start working and creating
> commits.
> [...]

I've got a further question on that "patch-based" workflow because the documentation always stops at "send the patch".

Case 1:
 Assume your patch series get accepted.
 What to do with your local changes branch, say "my-changes"?
 Keeping it would result in a lot of dead branches after a while.
 So, I guess "git branch -D my-changes" is the cleanest way to go,
 but I'm not sure.
Case 2:
 Assume your patch series is not accepted but some patches
 are discussed and need some further work.
 What to do?[1]
 I guess the right way is (after updating master) to rebase--interactive
 the my-changes branch to the master and "edit" every commit that
 need further changes. After the rebase with all changes has finished,
 format-patch and re-send the interesting patches 
 (or format-patch the whole my-changes branch down to master and re-send
  only the changed patches)...
Are my guesses "right" for the two cases? Comments?
Regards,
 Stephan
Footnotes:
  1. Yes, there is step (3) of "An ideal patch flow" in
     http://git.kernel.org/?p=git/git.git;a=blob;f=Documentation/SubmittingPatches
     but it does not suggest steps how to "polish" and "refine".
-- 
Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F
Previous: Björn SteinbrinkNext: Sean Estabrooks
Message 3 of 4 in “Creating a patch set with git-format-patch”
  1. Ian BrownApr 10, 2008
  2. Björn SteinbrinkApr 10, 2008
  3. Stephan BeyerApr 10, 2008
  4. Sean EstabrooksApr 10, 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.