Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » branch_status variable is broken with local tracking
branch_status variable is broken with local tracking [message #846641] Mon, 16 April 2012 09:28 Go to next message
R Shapiro is currently offline R Shapiro
Messages: 379
Registered: June 2011
Senior Member
The default decoration for Projects:


{dirty:>} {name} [{repository} {branch}{ branch_status}]

doesn't work for local tracking, ie, one local branch tracking another local branch. Specifically, branch_status is wrong.

Replicate as follows:

1) Use the egit Branches dialog to create a new branch, say "tracker", from "master". Select the 'merge' radio button option in the 'Create a new branch' sub-dialog.

2) Commit any random change in "tracker".

3) Run 'git status' on the command line, observe that, as expected, it says

# On branch tracker
# Your branch is ahead of 'master' by 1 commit.

4) Expected EGIT behavior: the project status will be decorated with up-arrow 1 to show that branch is ahead by 1 commit.

4) Observed EGIT behavior: the Project decoration in egit shows no status.

In other respects this form of tracking works perfectly well in egit/jgit. Only the Project decoration is wrong.

[Updated on: Mon, 16 April 2012 12:02]

Report message to a moderator

Re: branch_status variable is broken with local tracking [message #846648 is a reply to message #846641] Mon, 16 April 2012 10:05 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel Doninger
Messages: 119
Registered: October 2010
Senior Member
Did you create a bug report at http://bugs.eclipse.org ?
Re: branch_status variable is broken with local tracking [message #847830 is a reply to message #846648] Tue, 17 April 2012 13:47 Go to previous messageGo to next message
R Shapiro is currently offline R Shapiro
Messages: 379
Registered: June 2011
Senior Member
I did, though posting here generally seems at least as effective, if not more so.
Re: branch_status variable is broken with local tracking [message #870334 is a reply to message #847830] Mon, 07 May 2012 12:44 Go to previous message
R Shapiro is currently offline R Shapiro
Messages: 379
Registered: June 2011
Senior Member
For reference the bug is

https://bugs.eclipse.org/bugs/show_bug.cgi?id=376970

Near as I can tell nothing has been done with it, though my guess is it's a simple fix: just drop the incorrect presumption that only remote references can be tracked.
Previous Topic:Commit view opened from stash entry lacks diff tab
Next Topic:Push to upstream without confirmation dialog?
Goto Forum:
  


Current Time: Thu Apr 24 01:25:59 EDT 2014

Powered by FUDForum. Page generated in 0.02361 seconds