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