Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358892

Summary: Replace With->HEAD Revision results in modified file
Product: [Technology] JGit Reporter: Jens Baumgart <jens.baumgart>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn, remy.suen
Version: 1.1   
Target Milestone: 0.12-M1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Jens Baumgart CLA 2011-09-26 09:52:24 EDT
Steps to reproduce:

1. Modify a file in the java editor
2. Team->Add
3. Execute "Replace With->HEAD revision"

Afterwards Staging View and "git gtatus" will show that the file is "changed but not staged".
git diff will show no diff.
Comment 1 Kevin Sawicki CLA 2011-11-22 18:11:02 EST
I think this may have been a duplicate of bug355205 which was fixed in http://egit.eclipse.org/r/#change,4296
Comment 2 Matthias Sohn CLA 2012-04-19 02:47:26 EDT
This problem can't be reproduced with current 2.0.0-SNAPSHOT