Patching

jonasbn on 2005-12-15T20:52:23

I have over time sent a few pathes to CPAN authors and my technique slowly improves.

One receiver of my patches (I do not remember who), told me how me to make unified patches, thanks :)

Anton Berezin of the Copenhagen Perl Mongers, got me using CVS to make patches instead of a whole bunch of files and CVS supports the unified patch type.

Mattia Barbon got me thinking about making better and atomic patches.

Since patches have to be somewhat atomic, I can see that the latest patch I sent to David Dick is not of an especially good quality - not considering the patch content.

I should have applied it as several smaller patches, so David could pick and choose what fixes (patches) he wanted to apply, this meaning rolling back to the main branch before building each patch.

But one thing I am still not sure of - there are probably several which I have not discovered now, how would one go about building a patch covering several files keeping the patch atomic - the tools seem to be able to do this, I have not tried it though.

David, if you read this you are welcome to refuse my patch on the grounds mentioned above - and I will see if I can build a better set of patches.