Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » diff across a rename boundary?
diff across a rename boundary? [message #900080] Fri, 03 August 2012 16:17 Go to next message
Eclipse UserFriend
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 08:20] by Moderator

Re: diff across a rename boundary? [message #900771 is a reply to message #900080] Wed, 08 August 2012 08:39 Go to previous messageGo to next message
Eclipse UserFriend
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 08:33 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 13:16:48 EDT 2025

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

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

Back to the top