Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I save a file using the Eclipse compare editor

Tags:

diff

eclipse

I can't seem to find a way to save the changes I make to project files using the two-way compare of two local project file folders. I can step through the differences and copy changes from left to right, but there's no way, as far as I can tell, to save those changes. I looked at the files outside of Eclipse after I copy changes left to right and they are not being updated.

Here's a help site explaining what I'm doing http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-25.htm it sayz 'You can save changes to resources that are made in the comparison editor.' but doesn't say how...

I can just copy and paste the contents of the merged file into a new editor window but this seems like a silly way to go about this. I guess I could also create a diff patch and apply it to my project as well...

like image 551
edwardsharp Avatar asked Dec 03 '25 16:12

edwardsharp


1 Answers

It seems that using *nix command diff is a piece of cake:

diff -rupN original/ new/ > original.patch

as stated in the "The Ten Minute Guide to diff and patch"

like image 162
Boris Pavlović Avatar answered Dec 07 '25 13:12

Boris Pavlović



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!