Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354437 - Cannot delete untracked files from the 'Staging' view
Summary: Cannot delete untracked files from the 'Staging' view
Status: RESOLVED DUPLICATE of bug 384609
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 1.1   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 375396 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-10 16:41 EDT by Remy Suen CLA
Modified: 2012-07-23 15:34 EDT (History)
8 users (show)

See Also:


Attachments
Add "Remove Untracked Files" to the StagingView (7.85 KB, text/plain)
2012-07-23 14:23 EDT, Philipp Eichhorn CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***