Given a (source) patch file, what's the easiest way to apply this patch on the source files under Windows?
A GUI tool where I can visually compare the unchanged-changed source lines would be great.
Given a (source) patch file, what's the easiest way to apply this patch on the source files under Windows?
A GUI tool where I can visually compare the unchanged-changed source lines would be great.
WinMerge is awesome.
http://winmerge.org/
Not that since Git 2.3.3 (March 2015), you can use
git apply --unsafe-paths
to use git apply outside a git repo.See commit 5244a31 by Junio C Hamano (
gitster
)"
git apply
" was not very careful about reading from, removing, updating and creating paths outside the working tree (under--index
/--cached
) or the current directory (when used as a replacement for GNU patch).The documentation now includes:
So if you have git installed,
git apply
could help, even outside of any git repo.Thanks to Macke, a good way to apply a patch file under Windows OS is using Git. As I understood, Git is a version control solution like SVN.
Here is a guideline to apply a patch :
Simple isn't it ?
Thank you Macke
Patch for Windows is what you're looking for.