gitstatus
gitstatus copied to clipboard
Tags with slashes are ignored
Original report: https://www.reddit.com/r/zsh/comments/oz0xkt/p10k_not_showing_git_tags_with_slashes/
To reproduce:
❯ zsh -f
% mkdir /tmp/repo
% cd /tmp/repo
% git init
Initialized empty Git repository in /tmp/repo/.git/
% git commit --allow-empty -m first
[master (root-commit) 2d04980] first
% git tag foo/bar
% source ~/gitstatus/gitstatus.plugin.zsh
% gitstatus_start MY
% gitstatus_query MY
% typeset -p VCS_STATUS_TAG
typeset VCS_STATUS_TAG=''
The expected output from the last command:
typeset VCS_STATUS_TAG='foo/bar'
Only loose tags are ignored. Packed tags are fine. To continue the list of commands from above:
% git pack-refs
% gitstatus_query MY
% typeset -p VCS_STATUS_TAG
typeset VCS_STATUS_TAG='foo/bar'