Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » diff across a rename boundary?
diff across a rename boundary? [message #900080] Fri, 03 August 2012 20:17 Go to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
By setting the right preferences I can get EGit to show me the history of a file that follows renames. But if I then attempt to do any kind of comparison of the current version against one of the versions on the other side of a rename boundary, I get nothing meaningful: the Eclipse diff display shows the working version in the left and nothing in the right.

Similarly if I try to compare two old versions against one another (old as in on the other side of the rename boundary) the diff display shows nothing at all.

Is this a known limitation of EGit/JGit?

Fwiw I can get diffs across rename boundaries in IntelliJ IDEA, which is backed by command-line Git. So I know it's possible in principle to do this.

EGit 2.1.0.201208012223
Eclipse Juno
Max OS X 10.8

Addendum: in the specific example I'm looking at, the directory was renamed, not the file. I don't know if that's relevant or not. Basically EGit diff works on files in this directory only if both revisions are at or after the directory rename. If either revision is before the directory rename, the diff display shows nothing useful.

[Updated on: Sat, 04 August 2012 12:20]

Report message to a moderator

Re: diff across a rename boundary? [message #900771 is a reply to message #900080] Wed, 08 August 2012 12:39 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
So am I doing something wrong here, or is this feature not supported yet?
Re: diff across a rename boundary? [message #902389 is a reply to message #900771] Fri, 17 August 2012 12:33 Go to previous message
Stefan Lay is currently offline Stefan LayFriend
Messages: 342
Registered: July 2009
Senior Member
There is an open bug for this: (https://bugs.eclipse.org/bugs/show_bug.cgi?id=374722).

There is even a patch proposed on gerrit (https://git.eclipse.org/r/#/c/5391/), but it still has issues. Maybe somebody has time to continue working on that.
Previous Topic:jgit diff from different revision
Next Topic:Getting the list of modified files from a commit
Goto Forum:
  


Current Time: Thu Apr 25 07:07:30 GMT 2024

Powered by FUDForum. Page generated in 0.03071 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top