mental note: quilt without (much) pain

This is not a Quilt’s tutorial, is a quick reference (to me :)).

Honest I miss dpatch, now in Debian quilt is the “official” patch system then: you like it or you like it (that sound better in Spanish) :)
Let’s play!

quilt store the patches into: debian/patches (like as usual) and use a file called: series to containing the list of all the patches.
Apply the patches:
quilt push [-a]

Remove the patches:
quilt pop [-a]

Update a patch:
quilt refresh

Create a patch:
quilt new $PatchName
Example
quilt push -a
quilt new mynew.patch
quilt add filetomodify
Edit filetomodify
quilt refresh
quilt pop -a
Now your new patch is in debian/patches don’t forget to add in series.

Edit a patch:
To edit a existing patch, this must be on the top of the stack.
quilt pop -a
quit push $PatchName [-f]
quilt edit filetomodify
Make your changes
(at this point you can add new files)
quilt refresh

You can save you settings at ~/.quiltrc, this is mine:

QUILT_DIFF_ARGS="--no-timestamps --no-index --strip 0 -pab"
QUILT_REFRESH_ARGS="--no-timestamps --no-index --strip 0 -pab"
QUILT_NO_DIFF_INDEX=true
QUILT_DIFF_ARGS="--color=auto -p ab"
QUILT_REFRESH_ARGS="-p ab"
QUILT_PATCHES="debian/patches"

Obviously there are a more lot of options: man quilt

Easy right?