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

Re: how to create v2 patch

From
JHJan Hudec <bulb@ucw.cz>
Date
Dec 6, 2007, 20:44 UTC
Message-ID
<20071206204405.GA4216@efreet.light.src>
In-Reply-To
<475855D6.201@imap.cc>
On Thu, Dec 06, 2007 at 21:04:38 +0100, Tilman Schmidt wrote:
Show 17 quoted lines
> Am 01.12.2007 14:43 schrieb Mike Hommey:
> > On Sat, Dec 01, 2007 at 02:17:39PM +0100, Pascal Obry wrote:
> >> Tilman Schmidt a écrit :
> >>> I have produced a patch, submitted it to LKML, received a few
> >>> comments, committed appropriate changes to my local git tree,
> >>> and now want to submit a revised patch. How do I do that?
> >>> If I just run git-format-patch again, it produces my original
> >>> patch plus a second one containing my updates, but what I need
> >>> is a single new patch replacing the first one.
> >> Can't you merge both of your changes in your local repository? I would
> >> do that with an interactive rebase.
> > 
> > Or just git commit --amend when committing.
> 
> Hmm. But wouldn't each of these approaches lead to my original
> commit being removed from my git repository? And isn't removing
> commits that have already been published strongly discouraged?

Removing commits that you already published is strongly discouraged. But patch is not a commit. A v2 (short for 'second version') patch means a patch, that should be applied /instead/ of the previous. The previous patch -- and the commit it was generated from as well as any commit generated by applying it -- should indeed be replaced by the new version.

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: Tilman SchmidtNext: Pascal Obry
Message 5 of 10 in “how to create v2 patch”
  1. Tilman SchmidtDec 1, 2007
  2. Pascal ObryDec 1, 2007
  3. Mike HommeyDec 1, 2007
  4. Tilman SchmidtDec 6, 2007
  5. Jan HudecDec 6, 2007
  6. Pascal ObryDec 6, 2007
  7. Andreas EricssonDec 6, 2007
  8. Wincent ColaiutaDec 7, 2007
  9. Jakub NarebskiDec 1, 2007
  10. Björn SteinbrinkDec 1, 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.