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

Bug 439700

Summary: deleting a file (in package explorer) adds the file to the index
Product: [Technology] EGit Reporter: Missing name <farmboy0>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: robin.rosenberg, robin
Version: 3.4.1   
Target Milestone: 3.5   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Missing name CLA 2014-07-16 07:45:35 EDT
The Delete was done in the Package Explorer to a file already under (e)git version control.
After the Delete the change was shown as a staged change not an unstaged change as is expected.
Comment 1 Robin Rosenberg CLA 2014-07-16 08:32:16 EDT
This is intentional. When you delete a file you are most likely also going to commit the delete. Less work for the developer. We also do this for renames.

We don't do it for creating new files or changing files because it's more common, in that case, that you actually are not going to commit those changes and undoing staging is much harder, especially if you already have staged changes.
Comment 2 Robin Stocker CLA 2014-07-16 21:56:55 EDT
This request has come up before, please see bug 341322 which is about making this a preference. (Changed to duplicate so that we see it in the other bug.)

*** This bug has been marked as a duplicate of bug 341322 ***