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

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

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Apr 10, 2008, 10:56 UTC
Message-ID
<20080410105610.GB29742@atjola.homenet>
In-Reply-To
<d0383f90804100151s6ffde16al6035116c27c9cb3a@mail.gmail.com>
On 2008.04.10 11:51:59 +0300, Ian Brown wrote:
Show 11 quoted lines
> Hello,
>   I have a question regarding creating a patch set with git-format-patch:
> I had downloaded a git repository of the Linux kernel.
> 
> I intend to  make a change in two files: net/ipv4/route.c and
> include/net/dst.h and send a
> patch set of two patches for review.
> Now I want to create this  patch set of two pathces correctly;
> First patch for net/ipv4/route.c and second for include/net/dst.h.
> 
> what should I do ?

Just create a branch for you work, then start working and creating commits. In the end, you'll get one patch for each commit, so group your work in the commits just as you want it to appear in the patches.

Then, create the patches with: git format-patch <options> master

That will create patches for all commits that are in your branch, but not in master. Finally, you can use either git send-email or your favourite mbox-capable MUA to send the patches.

HTH Björn

Previous: Ian BrownNext: Stephan Beyer
Message 2 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.