Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » How to view an old version of a non-text file?
icon6.gif  How to view an old version of a non-text file? [message #1077896] Fri, 02 August 2013 05:31 Go to next message
Marcus Warm is currently offline Marcus Warm
Messages: 9
Registered: July 2009
Location: Kevelaer, Germany
Junior Member
hi

how can I open an old version of an Excel file? For old Java files it's no problem. But for Excel file it's necessary to open them outside of Eclipse using Excel.

I select the old commit in the history view. In the lower right corner the files of that commit are displayed. But there is no Open With > System Editor option in the context menu.

Is there another way to do this with EGit?
Is there any workaround? (e.g. using command line ... how?)

Regards
Marcus Cool
[Eclipse Kepler 20130614-0229, EGit team provider 3.0.0.201306101825-r]


[Eclipse Kepler 20130614-0229, EGit team provider 3.0.0.201306101825-r]
Re: How to view an old version of a non-text file? [message #1078049 is a reply to message #1077896] Fri, 02 August 2013 09:22 Go to previous messageGo to next message
Marcus Warm is currently offline Marcus Warm
Messages: 9
Registered: July 2009
Location: Kevelaer, Germany
Junior Member
hi

I've found a workaround. It's possible to checkout the commit. (right click on commit in history view and then say Checkout) Eclipse says that it's in detached HEAD state. Then it's possible in the package explorer view to open the old version Excel file with Excel.
After that I can switch back to the branch in the Git Repositories view.

Marcus


[Eclipse Kepler 20130614-0229, EGit team provider 3.0.0.201306101825-r]

[Updated on: Fri, 02 August 2013 09:23]

Report message to a moderator

Re: How to view an old version of a non-text file? [message #1078088 is a reply to message #1078049] Fri, 02 August 2013 10:23 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan Lay
Messages: 340
Registered: July 2009
Senior Member
Hi Marcus,

another idea could be to only check out the old version of this file. In EGit it is unfortunately not called checkout, but you can find it in the context menu under Team > Replace With > Commit...

Afterwards you could open it with Open With > System Editor

Stefan
Re: How to view an old version of a non-text file? [message #1078095 is a reply to message #1078088] Fri, 02 August 2013 10:34 Go to previous messageGo to next message
Marcus Warm is currently offline Marcus Warm
Messages: 9
Registered: July 2009
Location: Kevelaer, Germany
Junior Member
Thanks Stefan. I should also have to be able to figure that out myself.

But I think it's also a workaround. A "Open with" command in the History view would be the best solution. In CVS it was called 'Get contents'.


[Eclipse Kepler 20130614-0229, EGit team provider 3.0.0.201306101825-r]

[Updated on: Fri, 02 August 2013 10:35]

Report message to a moderator

Re: How to view an old version of a non-text file? [message #1078099 is a reply to message #1078095] Fri, 02 August 2013 10:36 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan Lay
Messages: 340
Registered: July 2009
Senior Member
Full Ack Smile
Re: How to view an old version of a non-text file? [message #1078114 is a reply to message #1078099] Fri, 02 August 2013 10:58 Go to previous message
Marcus Warm is currently offline Marcus Warm
Messages: 9
Registered: July 2009
Location: Kevelaer, Germany
Junior Member
I filed a new bug; see https://bugs.eclipse.org/bugs/show_bug.cgi?id=414309

[Eclipse Kepler 20130614-0229, EGit team provider 3.0.0.201306101825-r]
Previous Topic:How can I Fast-forward?
Next Topic:JGit - Delete remote branch
Goto Forum:
  


Current Time: Fri Jul 25 07:22:53 EDT 2014

Powered by FUDForum. Page generated in 0.01729 seconds