Bug 511485 - Show current branch in status bar
Summary: Show current branch in status bar
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: All All
: P3 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-01 12:31 EST by Marc-André Laperle CLA
Modified: 2017-02-01 23:01 EST (History)
2 users (show)

See Also:


Attachments
Mock-up (203.06 KB, image/png)
2017-02-01 12:31 EST, Marc-André Laperle CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2017-02-01 12:31:56 EST
Created attachment 266571 [details]
Mock-up

It would be useful to see the current branch (and it's state) in the status bar. 

Right now, if I am editing a file and I want to know which branch am I on, I either have to:
- Switch to the Git perspective, look for the repo in the Git Repositories view
- If I have the Project Explorer or Package Explorer opened, scroll up to find the containing project which has the branch information next to it
- Open another view, like the Git Staging view

It would be nice to just have this in the status bar synchronized with the selection (file, folder or project). Just like the label in the Git Repositories view, it could show the branch name, the state (rebasing, conflicts) and number of commits behind/ahead. I have attached a mock-up to show how it could look like.

As a bonus, if you click on the status bar on this information, it could navigate to something useful like the Git Stating view.
Comment 1 Matthias Sohn CLA 2017-02-01 17:40:13 EST
+1, good idea

We could also show the dirty decorator if there are uncommitted changes (like in repositories view).

Maybe you want to contribute this ?
Comment 2 Marc-André Laperle CLA 2017-02-01 23:01:44 EST
(In reply to Matthias Sohn from comment #1)
> Maybe you want to contribute this ?

I sure would like to :) But I'm not sure when I'll be able to. It's good to know that the idea is welcomed, as a first step.