romkatv / romkatv/gitstatus

Tags with slashes are ignored

Open
#254 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.8k
Forks
134
Avg merge
2d 18h
Merged PRs (30d)
1

Description

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'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior with zsh -f using the commands in the report, then trace how gitstatus.plugin.zsh and gitstatus_query populate VCS_STATUS_TAG for tags containing slashes. Done means the final typeset command reports VCS_STATUS_TAG='foo/bar'.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, git, zsh
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.