Skip to content

feat: optional read-only Git status badges in repositories - #213

Merged
nextestudios merged 1 commit into
mainfrom
feature/75-git-status
Sep 27, 2026
Merged

nextestudios merged 1 commit into
mainfrom
feature/75-git-status

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Summary

  • Configurações → Exibição → Status do Git (off by default). In a folder inside a repository the badge line shows GIT · ramo <branch> · N itens com mudanças, and rows/tiles get a state text (Git: modificado, novo (não rastreado), adicionado, renomeado, conflito, folders com mudanças); Narrator reads it too.
  • New IGitStatusReader (Core) + ControlFS.Infrastructure.Git using LibGit2Sharp 0.32.0 (MIT; native libgit2 is GPLv2 with linking exception — compatible, ~2.5 MB). Decision in docs/decisions/0008: shelling out to git status was rejected because it runs repository-configured commands (core.fsmonitor, clean/process filters); libgit2 executes nothing from the repo and needs no Git install.
  • Bounded: only the shown folder is queried (literal pathspec, no untracked recursion, no submodules, no rename detection), off the UI thread, results older than the navigation generation or slower than 10 s are dropped. Navigation never waits.
  • THIRD_PARTY_NOTICES.md updated; lock files regenerated.

Tests

  • CI: GitStatusJourneyTests (real temp repo: off by default, turning it on in Configurações shows modified/untracked/folder-with-changes, unchanged file has no badge, subfolder status via pathspec).
  • Manual (docs/TESTING.md): large repo responsiveness, TV readability, repos on exFAT/owned by others.

Closes #75

🤖 Generated with Claude Code

@nextestudios
nextestudios merged commit fb7e7ee into main Sep 27, 2026
1 check passed
@nextestudios
nextestudios deleted the feature/75-git-status branch September 27, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: show Git status indicators in repositories

1 participant