Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334741 - Can't rename file without history loss
Summary: Can't rename file without history loss
Status: CLOSED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-19 02:13 EST by razu CLA
Modified: 2011-11-16 10:21 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description razu CLA 2011-01-19 02:13:24 EST
When I'm renaming file, EGit detects it as removing old file and adding a new one, so when I commit such change, history of file is lost.
Comment 1 Daniel Stein CLA 2011-01-21 06:01:05 EST
I have the same problem. The annoying thing is that if someone change a file in a branch, that is renamed in another branch, egit can't merge the two branches in a sufficient way.
Comment 2 Manuel Doninger CLA 2011-01-24 08:04:37 EST
The history of the file isn't lost, but only not shown. If you try a "git log --follow" with a command line Git on that files, you will see the complete history. Git tracks files not on the basis of file names, but on the basis of contents and hash sums.
See bug 302549, which also describes this problem.
Comment 3 Stefan Lay CLA 2011-11-16 10:21:36 EST
This is fixed with 7e8fef95439e087e2621d9f33c6790675a1cfa57