Patching with Quilt

December 27, 2008 · Posted in Linux · 8 Comments 

Quilt is a great program to create patches. This post is a quick ‘n’ dirty tutorial on how to create a quick patch

Assuming you have Quilt installed ,

quilt new my.patch


will create a new empty patch named my.patch

Lets say that this patch is going to affect the main.cpp file. So ,

quilt edit main.cpp


Will open the main.cpp files using your predifined editor ( $EDITOR ), allowing you to make any changes you like.  When you are done , exit the editor. Now, my.patch is a ready-to-apply patch for the main.cpp file.

If you want to apply it , you should refresh the patch by doing

quilt refresh

and

quilt push

to apply it. Now you have your new main.cpp file ready to use :)

The patch is stored under patches/ folder

If you want to revert the patch you can use

quilt pop


This quide was ment to give you the main idea about the quilt program

A great guide about quilt can be found here.

Happy patching


		
		
		
				

GreekBloggers.com
Patras Wireless Metropolitan Network
Planet Hellug
iloog
forum hellug