-
Notifications
You must be signed in to change notification settings - Fork 290
Separate icon for annotated tag (to distinguish from lightweight tag) #1305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate icon for annotated tag (to distinguish from lightweight tag) #1305
Conversation
The commit 6a5e6d1 has been cherry-picked. Regarding the icons for tags, I've decided to keep them consistent. Whether a tag is Also, when retrieving the tag list, for sourcegit/src/Commands/QueryTags.cs Lines 32 to 38 in 01625ad
What Most other git clients do not distinguish between these two types of tags either. Introducing different tag icons actually increases the user's cognitive cost (in fact, there's no place to inform users why there are two types of icons). |
I see. Could we PLEASE then instead indicate, only in the tag-message tooltip itself, by an icon and/or by a prefix text like "[Annotated:]" and "[Log:]" (or similar) respectively, where the message comes from? |
The new icon is applied everywhere - except for Models.Decorator and Models.Filter, since these are not (yet) updated to discern the specific tag type.
6a5e6d1
to
47fa073
Compare
Thanks, @love-linger - looks great! Just a note: the "annotated" string will need to be localized... |
Can you test the output of git command in |
Ah, Git itself seems to respond with the tag-name if the (lightweight) commit-message is empty, and even when the (annotated) tag-message is empty! Thus, to avoid the duplication we would need to compare the stripped message to the (isolated) tag-name and clear the message if they are identical... |
Thank you, it now works like a charm! And just for the record - my test result above was half wrong, but the fix is relevant nonetheless: |
The QueryTags command now additionally reads the %(objecttype) field, which allows us to distinguish between Lightweight tags and Annotated tags.
A new icon is applied for Annotated tags, almost everywhere - except for Models.Decorator and Models.Filter, since these are not (yet) updated to discern the specific tag type. Nevertheless, this change makes it much easier to distinguish if a tag is Annotated or Lightweight.
Also, it's now easier to understand if the tooltip tag-message comes from the (Annotated) tag itself or from the (Lightweight) tag's corresponding commit.
Finally, a
Border
is added around theTextBlock
of items in the TAGS list, to make its message-tooltip work more similar to the ref-tooltip in the LOCAL BRANCHES and REMOTES lists.