Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » branch_status variable is broken with local tracking
branch_status variable is broken with local tracking [message #846641] Mon, 16 April 2012 13:28 Go to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
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 16: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 14:05 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel DoningerFriend
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 17:47 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
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 16:44 Go to previous message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
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: Tue Apr 23 16:31:21 GMT 2024

Powered by FUDForum. Page generated in 0.05834 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top