Generate and apply patches
Windows visual diff and merge for files and directories
Brought to you by:
christianlist,
grimmdp
This would be a great GUI to generate and apply patch
files, with some nice features:
* generate patch from diff
* apply patch and resolve conflicts interactively
* edit the operations in a patch file
* generate an "undo" patch during manual edits of a
directory tree
* generate a "redo" patch during manual edits of a
directory tree
Logged In: YES
user_id=631874
Assigning to me. I have working code for patch creation.
Needs some cleanup still, but I submit patch in few days.
If I have time I work later with patch applying too.
Logged In: YES
user_id=631874
I applied patch "#803904 Create patches" to CVS.
Logged In: YES
user_id=631874
Unassigning. Patch generation works now. Other items are to
be done.
Logged In: YES
user_id=631874
Setting resolution to 'Later'.
some thoughts about implementing this, if somebody is
interested:
- get GNU/patch codes, and modify them to compile in Visual C 6
- simple approach: compile patch.exe and call it to generate
patched file to temp directory
- advanced approach: compile patch code to WinMerge.exe like
GNU/diffutils and create patched file as temp file.
- after temp file is created, open original file and temp
file to WinMerge
Logged In: YES
user_id=527360
Applying patches (diff files) is really something I would
love to see.
So count this comment as a vote in favour... ;o)
Logged In: YES
user_id=13794
I would also really like to see that WinMerge could apply
patches as well; so think of this comment as another vote for
this... ;-)
+1 ;-)
Logged In: YES
user_id=631874
I think easiest way to implement this is to use GnuWin32
port of patch:
- create copy of file to patch into $temp directory
- apply patch to that copied file
- open original file and patched file into WinMerge file compare
Easy to implement, finding time is the problem...
Increasing priority since this is definitely in list for
next stable release.
Logged In: YES
user_id=810587
Originator: NO
Nudge.
Any further thought on applying patches?
Logged In: YES
user_id=631874
Originator: NO
Unfortunately no at the moment.
The GnuWin32 is based on MinGW32 and GCC. So getting it to even build with MSVC might be a challenge of its own. Building patch-implementation as DLL or lib (to use from WinMerge code) might be pretty fun too.
"Fast" solution could be to use the executable build with MinGW. Not elegant, but should work.
If somebody wants to work with this, I can try to help. But I don't believe I have time to implement this anytime soon. Maybe next year..
Logged In: YES
user_id=669020
Originator: NO
Is the code in http://www.freebsd.org/cgi/cvsweb.cgi/src/gnu/usr.bin/patch/ is better suitable for compiling with MSVC? If not then there is a page at http://unxutils.sourceforge.net/ that claims to have native win32 port of patch utility.
Logged In: YES
user_id=631874
Originator: NO
> Is the code in
> http://www.freebsd.org/cgi/cvsweb.cgi/src/gnu/usr.bin/patch/ is better
> suitable for compiling with MSVC?
Hard to say, but initially doesn't look like it.
>If not then there is a page at
> http://unxutils.sourceforge.net/ that claims to have native win32 port of
> patch utility.
I have to check again, but if I remember correctly unxutils (like GnuWin32) tools are still compiled with Cygwin/MinGW. Meaning they are compiled with GCC but linked against MS DLLs. So porting to MSVC is still some work.
Logged In: YES
user_id=669020
Originator: NO
GNU patch utility is buggy - https://sourceforge.net/tracker/?func=detail&atid=379173&aid=2007384&group_id=23617
and BSD version seems to contain the same branch. I wonder why there are still no alternative branches to this simple open source swiss army knife? Does anybody know about these?
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests"
There is still a market for patch applying GUI tool, is there any update on this?
http://stackoverflow.com/questions/517257/how-do-i-apply-a-diff-patch-on-windows
Last edit: Anonymous 2018-02-04
May I also request this feature? It would be really useful!
+1 from me.
is this feature planned for next release?
i vote +1