GNOME Bugzilla – Bug 576690
Display the current branch
Last modified: 2009-08-28 18:07:31 UTC
The name of the current branch is useful: * in history view in order to understand the first viewed history, * in commit view in order to ensure on which branch the commit will be made. By "current" I mean the base branch for the working tree, the result of the "git checkout" command. My first idea is to display this info in the title bar.
I started to work on this feature. I created a branch: http://github.com/guyou/gitg/tree/display-current-branch-name
Working around this feature, I had to rework the "current_ref" stuff. But this is suspicious (is the previous work never worked?). Please, can someone double-check my rework? http://github.com/guyou/gitg/commit/90e241e21a2bc21e9e8df0a359668573f0f5e02d
Created attachment 131702 [details] [review] The current patches serie I add my patches series to keep track of the availability of a patch (waiting Gnome's bugzilla add a "pull request" property)
I have currently implemented selecting the 'current' branch in the branches combo box. This correctly uses any git revision selection you would have (like invoking gitg <branch-name>). This involved rewriting the load_current_ref (but in a different way than in the proposed patch). This is different than showing the 'real' current branch (e.g. the checkout branch) which is useful in the commit view. I'm therefore leaving this bug open still so that I don't forget that.
This has been fixed now by showing the currently checked-out branch in the window title.