This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I checked out https://github.com/apache/maven-3.git in tag maven-3.0.3. When I open the component modules in NB, I see e.g. Maven Core [(no branch) 05e19b6bc21ea11b998e2d6baee2fecbe6bddc24] which takes up most of the room in the Projects window and is very distracting. There is no apparent option in Tools > Options > Miscellaneous > Versioning > Git to suppress this - no "Status Label" field like for Mercurial. Even the default is poor: 1. If there is no branch specified, just don't print anything. Displaying "(no branch)" is not very useful. 2. Since I have checked out a tag, I want to see that, not the commit ID. 3. The full-length commit ID takes up a lot of room. Anyway what am I supposed to do with it? I cannot copy and paste it. You could display just the first six digits (say) if you wanted something usually unique and easy to type.
fix: http://hg.netbeans.org/core-main/rev/8ba1be496e88
> Even the default is poor: > 1. If there is no branch specified, just don't print anything. Displaying "(no branch)" is not very useful. OK, removed > 2. Since I have checked out a tag, I want to see that, not the commit ID. When bug #196389 is implemented > 3. The full-length commit ID takes up a lot of room. Anyway what am I supposed to do with it? I cannot copy and paste it. You could display just the first six digits (say) if you wanted something usually unique and easy to type. The ID is shortened now
Will there be a customizable status label option later?
(In reply to comment #3) > Will there be a customizable status label option later? i would prefer to toggle the branch/tag labels via menu > view > show versioning labels
(In reply to comment #4) > toggle the branch/tag labels via menu > view > show versioning labels Sounds fine. I have this option unchecked. (I guess that is the default, since I never noticed it before?)
(In reply to comment #3) > Will there be a customizable status label option later? We do not intend to have parametrized label right now, but maybe in future when we have more items to display (currently only branch or commit id) I thought this may be fine for now: 1) When you are on a branch, display the branch name 2) When not on a branch but a tag is checked out, display the tag name 3) When neither 1) or 2) display the commit id I don't know if customizing the label is meaningful or required by someone, i thought the previous logic is sufficient. If you have a different view on that, please comment. If you just want to disable the label completely, use the item in the main menu as tomas suggested. There was a bug (the label was always displayed), i fixed that in http://hg.netbeans.org/core-main/rev/c2a63ca53f6a
Integrated into 'main-golden', will be available in build *201103080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8ba1be496e88 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #196312 - Excessive labels on project nodes