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

Bug 338561

Summary: "Compare with" HEAD revision greyed out for folder
Product: [Technology] EGit Reporter: sam <s.marshall>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: mathias.kinzler
Version: unspecified   
Target Milestone: 0.12-M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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