• Post Reply Bookmark Topic Watch Topic
  • New Topic

Comparing 2 files and showing diff graphically.

 
Om Tejas
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I hope I am posting the topic to correct forum. I have a task at hand where-in I have 2 files. I want to develop a utility that would compare , show diff and merge the diffs of these 2 files. the catch here is that the one of the file could be located on a remote machine. And I want to compare the diffs, merge them from the file at my local machine to the one at remote machine.

Please note that I don;t want to use and version control tool. I heard that there are some APIs that can be used to write such utility.

Thanks,
Gaurav.

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not just use an existing tool?
 
Om Tejas
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, existing tools only compare files on same system. I want to compare files which is in remote machine without transferring file to local system
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then I'm sorry to disappoint you, but that's not possible. Whatever tool you use may not store the remote file on the local file system, but it will still transfer it. After all, it needs to read the file, and you can't read it without transferring its contents (and therefore the file) to the local system.
 
Om Tejas
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Rob

Ok , I got your point. The tool should at-least copy file to local system and then diff and then may be discard th remote-file copied in local system.

I am looking for some set of UI based SDK/APIs which can help in showing, doing diff, merging graphically. Using those set of APIs I should be able to highlight the line having diffs, give an option to merge etc. I am trying to develop a mini-tool which can achieve this. Any little direction/suggestion can help me a lot.

Thanks in advance.
Gaurav
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!