Visibility of current branch
I have just noticed that the currently checked out branch is highlighted by being in bold text. (Well I saw a comment that it was shown somewhere and then I could see that one label was in bold but I did not notice any bold label before)
Could we make it more obvious as it is not easily seen
Possible a go to current branch button or some highlight on the branch menu, although that could get messy if there are many branches
Comments and changes to this ticket
We could also use some clever variant of what the cli version does: "# On branch branch_foo. 2 commits a head of origin"
On the status bar, we could put the current branch name and, if applicable, the number of commits ahead or behind the tracked remote branch.
I've created a patch which display the current checked-out branch (i.e. the one HEAD points to and which will receive any commits) in the window-title. It also displays a message if the HEAD is detached.
It's really hard to find a good spot to put this call, and I'm hoping it will get better once we get refresh-on-change or refresh-on-interval.
The patch looks fine, but I think you're right in that it's hard to put this in a good spot. The whole PBGitRepository naming stuff is a bit messy. If you look at the calls GitX makes before actually loading it, you can see quite a few things are duplicated.
I think it's time to rewrite part of that stuff to make something nicer. I'd rather wait with applying your patch until that is done, to keep things simpler.
Well, a general concept would be nice ;) Are we talking a few functions here or a complete rewrite? Is it realistic to keep this in line for 0.7? Or should we just release 0.7 with the intermediate solution, which isn't optimal, and schedule the rewrite for a later release?
I've got a mental list, but I should get better organized :) I think I
used to use the TODO wiki page for that, until other's started adding
stuff to that ;)
I merged this in by accident, but I found I really like it, so we'll
just keep it in and see what to do with the mess later. Thanks!