|Problem with renaming file [message #649285]
||Tue, 18 January 2011 15:26
Registered: January 2011
I'm trying to rename a file in my project, but EGit detects that operation as removing file and adding new one. In the result I'm loosing history of that file.
Is anyone has that problem too?
Version of eclipse: eclipse-java-helios-SR1-linux-gtk-x86_64
Version of EGit/JGit: 0.10.1
|Re: Problem with renaming file [message #650171 is a reply to message #649285]
||Sat, 22 January 2011 10:09
| Robin Rosenberg
Registered: July 2009
razu skrev 2011-01-18 16:26:|
> I'm trying to rename a file in my project, but EGit detects that
> operation as removing file and adding new one. In the result I'm loosing
> history of that file.
> Is anyone has that problem too?
> Version of eclipse: eclipse-java-helios-SR1-linux-gtk-x86_64
> Version of EGit/JGit: 0.10.1
Git does not track file renames. It just add the new name and removes
the old name. The C version tries to track content moves during various
operations, e.g. merge and log (on demand). There is code in JGit to
perform rename detection, but it is only invoked in a few places yet and
not from EGit.
Adding the rename/rewrite detected to EGit is probably not that hard, in
fact it should be trivial, but you also want it to be shown in a
meaningful way, which leaves some opportunity for creativity since that
could probably be implemented in more than one way. There are also many
places where you want it.
Quickdiff (only Follow, not Rewrite)
History (Follow and Rewrite, how to annotate?)
Compare Version (Rename only, Different names, recursive rename detection?)
Commit Dialog (Both, how to annotate?)
Decorators (how to decorate)
This bug talks about the history view:
I added separate bugs for the others too, since they need unique
solutions in the UI.
Powered by FUDForum
. Page generated in 0.01558 seconds