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

Bug 442906

Summary: Warn when creating an empty commit
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: GitAssignee: Bogdan Gheorghe <gheorghe>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: gheorghe
Version: 6.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2014-08-29 11:41:10 EDT
When using the Repository page:
1. I had 1 unstaged file in my working directory that I wanted to commit.
2. I typed a message and clicked Commit, forgetting to stage the file first.
3. I ended up with an empty commit.

It would be nice if we warned about this case, e.g.
"You're creating an empty commit. Is this really what you want?"
Comment 1 Bogdan Gheorghe CLA 2014-10-30 19:01:01 EDT
Fixed