Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360632 - HistoryView: don't show "additional" refs by default
Summary: HistoryView: don't show "additional" refs by default
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 1.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 05:17 EDT by Mathias Kinzler CLA
Modified: 2012-09-18 11:45 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Kinzler CLA 2011-10-12 05:17:00 EDT
I had a discussion with an SAP colleague today who stumbled across the new 1.1 feature that makes more refs visible in the History View, e.g. ORIG_HEAD and FETCH_HEAD. While these are certainly helpful for the super user, they tend to confuse the "normal" user and make the History View harder to use.

For example, the user has selected "Show All Branches and Tags" in the History View and wants to see

O Feature Branch HEAD Develop some feature
|
O origin/master Some previously developed feature

but instead gets

O ORIG_HEAD Some commit before a rebase was done
|
O Some other commit
|
| O Feature Branch HEAD Develop some feature
| |
| O origin/master Some previously developed feature
......
\ |
  O

I think it's a very valid use case to check the "Show all branches and tags" so that the origin/master is visible even if there is no local branch pointing to it. Showing additional refs depending on the state of the button does not conform with the semantics suggested by it's text (HEAD is special in that it marks the "current" branch which is quite important information).

In order to satisfy the super user, I would suggest a checkbox on the "Views" preference page that is unchecked by default with the semantics "Show additional refs" that the super user can select. The semantics could also be "Show additional refs if Show all branches and tags is selected", but I guess this would be too confusing. There should also a toggle menu entry in the view's menu under Show > Additional Refs (similar to Show > Notes History.

HEAD should probably be shown always.
Comment 1 Remy Suen CLA 2011-10-12 07:00:11 EDT
Having a list of checkboxes to define what should be seen would be very helpful. It would also fix bug 359406.
Comment 2 Karen Butzke CLA 2012-09-18 11:45:35 EDT
My own preference would be to see FETCH_HEAD but not ORIG_HEAD. So specific preferences for each ref would be nice.