nettee / nettee/iconfig

Avoid core.excludesfile for worktree-local ignores due to p10k gitstatus mismatch

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

reminder
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=all reports clean
  • p10k VCS segment: shows ?1
  • The ignored path was ignored via worktree-local core.excludesfile:
    • .git/worktrees/<worktree>/config.worktree
    • core.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:

  1. repo .gitignore when the ignore rule is shareable;
  2. common repo exclude at .git/info/exclude when local-only but shared across worktrees is acceptable;
  3. 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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.