Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363504 - can discard new file
Summary: can discard new file
Status: RESOLVED DUPLICATE of bug 361112
Alias: None
Product: Orion
Classification: ECD
Component: Git (show other bugs)
Version: 0.3   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 11:51 EST by Felipe Heidrich CLA
Modified: 2011-11-10 12:11 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felipe Heidrich CLA 2011-11-10 11:51:36 EST
Steps


Add a file to your local repo
open the status page
execute the 'Discard the selected unstaged change' on the file just added

Result:
- Nothing happens

Expected:
the new file to removed from the view

I understand that checkout in git does not remove new files from repo
- therefore the option should not be there for added files
better option (provide you want follow git rules) would be to replace the checkout action by a clean action for new files.

Personally I would be fine if the Discard action would just work, calling checkout for modified files and clean for new files (implementation detail dictated by git)
Comment 1 Tomasz Zarna CLA 2011-11-10 12:11:30 EST
Looks like a dupe of bug 361112.

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