From: Björn Steinbrink Date: Thu, 10 Apr 2008 10:56:10 GMT Subject: Re: Creating a patch set with git-format-patch Message-ID: <20080410105610.GB29742@atjola.homenet> In-Reply-To: On 2008.04.10 11:51:59 +0300, Ian Brown wrote: > 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 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