Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338561 - "Compare with" HEAD revision greyed out for folder
Summary: "Compare with" HEAD revision greyed out for folder
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 0.12-M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-01 12:18 EST by sam CLA
Modified: 2011-03-18 10:29 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sam CLA 2011-03-01 12:18:28 EST
Build Identifier: 20100218-1602

Using egit 0.11 release, the 'Compare with... HEAD' option is greyed out when there are no changes in a file. This is presumably intended. However, the option is also greyed out for folders, even when there are changes in files within that folder.

Reproducible: Always

Steps to Reproduce:
1. In a project that uses egit, make a change to a file. Note that the file, and the folder it is contained within, both now show a > decoration on their name in the Navigator view.

2. Right click on the file and choose 'Compare with'. Note that the 'HEAD Revision' option is available.

3. Right click on the folder and choose 'Compare with'. Note that the 'HEAD Revision' option is greyed out.

The work-around is to choose the 'Compare with... Commit' option and then select HEAD, which is the first option. The folder compare then works correctly.
Comment 1 Mathias Kinzler CLA 2011-03-18 10:29:31 EDT
Fixed in the meantime.

Code review was at http://egit.eclipse.org/r/#change,2497
Merged as 2e6a9708f29307b1a62a3a0d0c689ae02fcdd7b0