RSS/Atom feed Twitter
Site is read-only, email is disabled

Applying GIT patch

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Applying GIT patch Eric Daoust 15 Jul 21:59
  Applying GIT patch Martin Nordholts 15 Jul 22:04
Eric Daoust
2009-07-15 21:59:52 UTC (over 15 years ago)

Applying GIT patch

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?

Thank you, Eric

Martin Nordholts
2009-07-15 22:04:21 UTC (over 15 years ago)

Applying GIT patch

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