[Gimp-developer] Applying GIT patch
Martin Nordholts
enselic at gmail.com
Wed Jul 15 13:06:40 PDT 2009
On 07/15/2009 09:59 PM, Eric Daoust wrote:
> Hello,
>
> I have uploaded a couple patches (tarballs containing multiple
> commits) to bugzilla. What is the correct method to apply these
> patches so that others can see my work?
Hi,
To apply patches created with git-format-patch, use git-am, like this:
git am 0001-single-file.patch
or for multi-file commits:
tar -zxvf lots-of-commits.tar.gz
git am lots-of-commits/*
where lots-of-commits contains the files
0001-foo.patch
0002-bar.patch
0003-foo-bar.patch
Often, you might want to create a new branch before you apply them
git checkout -b lots-of-commits origin/master
HTH,
Martin
More information about the Gimp-developer
mailing list