[wp-hackers] WP Patch day?

Carthik Sharma carthik at gmail.com
Sat Jul 24 21:31:49 UTC 2004


http://wiki.wordpress.org/CVSHowTo

discusses a few things, including generating diffs.

Maybe Kitten can add to that.

On Sat, 24 Jul 2004 14:00:30 -0700, Kitty <kitty at mookitty.co.uk> wrote:
> On Sat, 2004-07-24 at 11:00 +0200, Tara Star wrote:
> 
> > a link to "patches for dummies" would be nice. I know how to modify
> > things in my own install, but how does one create a patch?
> 
> For windows, "WinMerge" is about the best there is, it open-source. On
> Linux, it's built in, and if you have KDE, kompare is a good GUI diff
> program.
> 
> For tutorials:
> From Apache.org, a good overview of the process:
> http://cocoon.apache.org/2.1/howto/howto-patch.html
> 
> and the "Contributing to Open Source Projects HOWTO":
> http://www.kegel.com/academy/opensource.html
> 
> Read both, and you'll have a good idea of the process, and how best to
> use it with WP.
> 
> But here's some tips:
> Keep a clean copy of the latest CVS, so you'll have a place to start
> from, make your changes, make sure they work. Then do a 'save as' on
> your file with a new prefix or suffix (I usually add a prefix describing
> what I'm doing, i.e. options-writing.php becomes
> lang-options-writing.php when I'm ready to diff.)
> 
> Now, get a clean copy of the original file, and replace the file you
> modified. Now if you have a Linux command line, in that folder, type
> 'diff -u3 -r options-writing.php -r lang-options-writing.php >
> lang-patch.diff' and you'll have a new file, lang-patch.diff, containing
> the changes that you made ready to apply.
> 
> For a graphical program, open the files with the program, and there
> should be an menu option to create a diff file. The programs vary, and
> you'll have to read the instructions to find out exactly how to do it.
> 
> Hope this helps, and I'll post it to the wiki too.
> 
> 
> --
> Cheers!
> Kitty <kitty at mookitty.co.uk>
> http://blog.mookitty.co.uk/
> http://mookitty.co.uk/devblog/
> 
> 
> 


-- 
When nothing is done, nothing is left undone -- 老子 Lǎozi

University of Central Florida
Homepage: http://carthik.net



More information about the hackers mailing list