-
Notifications
You must be signed in to change notification settings - Fork 25
Creating and Managing Patches
quilt
is used for managing multiple patches. Here's a rough guide on using it.
-
Clone this repository
git clone https://github.com/lah7/gtk3-classic cd gtk3-classic
-
Download and extract GTK's source code
source PKGBUILD wget "https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-$_gtkver.tar.xz" tar -xJf gtk+-$_gtkver.tar.xz
-
Tell
quilt
where the patches are storedcd gtk* export QUILT_PATCHES=../
-
Apply all existing patches first
quilt push -a
-
Create the patch - see existing patches for suggested naming convention.
quilt new name_of_new.patch
-
Tell
quilt
which file(s) you wish to change.quilt add gtk/gtkentry.c
-
Modify the file(s)
-
Confirm the diff looks good
quilt diff
-
Save the patch
quilt refresh
-
If this is to be proposed to our repository: Use
git
to commit, push to your fork and open a pull request.
-
Repeat this command until you reach the desired patch to modify.
quilt push
For a reminder where you are in the series:
quilt series
-
Modify the source code with the desired changes
-
Save the changes
quilt refresh
-
If this is to be proposed to our repository: Use
git
to commit, push to your fork and open a pull request.
-
Unpatch everything in source code
quilt pop -a
-
Patch everything in source code
quilt push -a
-
List all patches and current patch
quilt series
-
Refresh current patch. Useful for different GTK versions, but watch out for "fuzzy" changes as they could potentially be lost.
quilt refresh