Applying patches - Use Git? or just wget and patch?
Tue, 2011-12-13 19:44
Chris,
In your opinion what is the best way to apply patches?
Right now im just wget the the patch file and applying. I have seen people use git to manage the version before the patch. Can you speak to the most pragmatic method?
- philoSurfer
Good question. I personally would definitely have the original module in version control before applying the patch, and then would put the patch in a 'patches' folder in the module. This technique will be covered in upcoming videos in the "Change Management and Version Control" series. I find it nice to be able to easily review the changes in a patch (using a diff command) and to get the patch into version control for easy application later.
Using wget to get the patch seems good, although I've always just manually downloaded the patch. Can you tell me why you would use wget instead?
Cheers!
Chris