You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everybody,
I'm looking for a way to display latest tag along with current branch name. I can do that with the "Git commit" module if I set tag_disabled=false and only_detached=false
So tag is show, and not only in detached head state. But this interferes with the default behavior that I like, which is show commit name (alone) when in detached head.
What I want is "if detached head, show commit name in bold green, if not detached head show latest tag in regular white"
I could tweak the format string to but that seems tedious. Is there a better way to keep both behaviors?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everybody,
I'm looking for a way to display latest tag along with current branch name. I can do that with the "Git commit" module if I set
tag_disabled=false
andonly_detached=false
So tag is show, and not only in detached head state. But this interferes with the default behavior that I like, which is show commit name (alone) when in detached head.
What I want is "if detached head, show commit name in bold green, if not detached head show latest tag in regular white"
I could tweak the
format
string to but that seems tedious. Is there a better way to keep both behaviors?Thanks
Beta Was this translation helpful? Give feedback.
All reactions