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

Bug 354437

Summary: Cannot delete untracked files from the 'Staging' view
Product: [Technology] EGit Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: angvoz.dev, bradcupit, daniel_megert, knut.wannheden, markus.kell.r, pwebster, robin, sam.davis
Version: 1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Add "Remove Untracked Files" to the StagingView none

Description Remy Suen CLA 2011-08-10 16:41:28 EDT
If I select an untracked file in my workspace from the 'Staging' view and try 'Replace with File in Git Index' to delete the file, it doesn't work. Maybe this should work. Or maybe another entry should be available for deleting the file, I don't know. If the latter, then please disable the menu item.
Comment 1 Markus Keller CLA 2012-01-12 05:33:10 EST
+1. Not even a workaround via "Show In > Package Explorer" works (bug 363567).
Comment 2 Andrew Gvozdev CLA 2012-02-20 18:05:13 EST
(In reply to comment #0)
> If I select an untracked file in my workspace from the 'Staging' view and try
> 'Replace with File in Git Index' to delete the file, it doesn't work. Maybe this
> should work. Or maybe another entry should be available for deleting the file, I
> don't know. If the latter, then please disable the menu item.
I think it is better to use 'Replace with File in Git Index' so it would be possible to apply the operation when multiple files are selected.
Comment 3 Brad Cupit CLA 2012-02-23 22:14:29 EST
This is fixed in egit 1.3, right?
Comment 4 Markus Keller CLA 2012-06-13 10:26:31 EDT
*** Bug 375396 has been marked as a duplicate of this bug. ***
Comment 5 Markus Keller CLA 2012-06-13 10:35:37 EDT
(In reply to comment #3)
> This is fixed in egit 1.3, right?

Nope, the bug is still here and still causes a lot of unnecessary work.

The "Replace with" actions should really operate on the selection, and hence also replace untracked files.
Comment 6 Philipp Eichhorn CLA 2012-07-23 14:23:15 EDT
Created attachment 219066 [details]
Add "Remove Untracked Files" to the StagingView
Comment 7 Robin Stocker CLA 2012-07-23 15:34:00 EDT
I'm sorry to say, but this was already implemented in bug 384609 (it also works for non-workspace resources). Please use a nightly build, where the Delete action is available.

Technically, bug 384609 is the duplicate, but as the other one is already resolved, I'm going to mark this one as the duplicate.

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