[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[egit-dev] Compare with Revision functionality
|
Hi,
I tried to implement the "Compare with Revision" feature that seems to
be related to http://code.google.com/p/egit/issues/detail?id=93 .
I got the action hooked up in the "compare with"-context menu of
workspace resources just above "compare with git index". The history of
the file is shown nicely in the HistoryView and on double click the
compare editor opens.
However, I did not manage to get the content of the selected commit as
the right side of the editor. The left side displays the workspace
revision correctly.
My question is: I have a RevCommit (the entry selected in the history
view) and want to obtain the corresponding revision of the file. I tried
using
...
final String gitPath = mapping.getRepoRelativePath(resource);
final IFileRevision nextFile = GitFileRevision.inCommit(
db,
commit,
gitPath,
commit);
to no avail. I guess I am missing some concept regarding git/jgit here.
Thanks for your help
regards Mihael
--
Mihael Vrbanec | Softwareentwicklung
Softwareschneiderei GmbH | Gerwigstraße 12 | 76131 Karlsruhe | GERMANY
Registergericht: Amtsgericht Mannheim, HRB 109299
Geschäftsführung: Daniel Lindner
Tel.: +49 (0) 721 / 66 388 -08 | Fax.: +49 (0) 721 / 66 388 -09
http://www.softwareschneiderei.de