Avoid core.excludesfile for worktree-local ignores due to p10k gitstatus mismatch
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 0
- Forks
- 0
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
Background
In a linked Git worktree, p10k/powerlevel10k can show an untracked marker such as ?1 even when git status reports a clean working tree.
Observed case:
- Worktree:
~/projects/issue-recorder-wt-change-domain - Git CLI:
git status/git status --porcelain --untracked-files=allreports clean - p10k VCS segment: shows
?1 - The ignored path was ignored via worktree-local
core.excludesfile:.git/worktrees/<worktree>/config.worktreecore.excludesfile = .../.git/worktrees/<worktree>/info/exclude
When disabling the configured excludes file, Git also reports the same untracked path, which confirms p10k/gitstatus is effectively not honoring this core.excludesfile setup.
Related upstream issue
This appears related to gitstatus/gitstatusd not fully respecting core.excludesfile.
Decision / guidance
Avoid relying on core.excludesfile for worktree-local ignore rules when p10k/gitstatus prompt accuracy matters.
Prefer one of:
- repo
.gitignorewhen the ignore rule is shareable; - common repo exclude at
.git/info/excludewhen local-only but shared across worktrees is acceptable; - accepting/turning off p10k untracked display if worktree-local excludes are required.
Notes
At the time of investigation, local p10k was using gitstatusd v1.5.4; no confirmed upstream fix was found.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names worktree-local .git/worktrees//config.worktree and info/exclude paths, plus .git/info/exclude, but no repository documentation file or test. First inspect the existing documentation and ignore-file guidance. Done means recording the p10k/gitstatus limitation and the listed alternatives without implying an upstream fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100