Repository navigation
fix(git): drop -uall from compact status so output never exceeds raw - #2035
Merged
Merged
Conversation
The compact `git status` path ran `git status --porcelain -b -uall`. The `-uall` flag expands fully-untracked directories into every file, while raw `git status` collapses them (e.g. `node_modules/`). This made rtk output larger than raw — measured ~29x on a 200-file untracked dir (5500B vs 191B) — violating RTK's compress-or-match-raw invariant and inflating tokens. Remove `-uall` so untracked directories collapse exactly like raw. This keeps #991's actual fix intact: all modified/staged/renamed/conflict paths are still shown with no grouped summaries or `... +N more` overflow markers (`-uall` never affected those lines). Untracked files in partially-tracked dirs and any paths git itself expands are still preserved by the formatter. Measured (rtk vs raw git status): - node_modules/ (200 files): 5500B (-2780%) -> 25B (+87% savings) - normal (8 mod + 2 untracked): +71% -> +76% - 17 modified (#991 case): unchanged at +58%, all 17 shown, 0 overflow markers Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
thehoff
added a commit
to thehoff/contextcrawler
that referenced
this pull request
Jun 12, 2026
…(rtk rtk-ai#2035) The compact `git status` path ran `git status --porcelain -b -uall`, but we measure savings against raw `git status` — which defaults to `-unormal` and collapses fully-untracked directories to a single line. `-uall` expands them into every file, so in any repo with a non-ignored untracked dir our output exceeded raw (~29x on a 200-file dir), the opposite of the tool's purpose — and the inflation was invisible because `savings_pct` floors at 0 (rtk-ai#196). Drop `-uall` so untracked dirs collapse exactly like raw. Modified/staged/ renamed/conflict paths are unaffected by `-uall` and remain fully shown by the formatter; state-header and detached-HEAD extraction read from the separately-captured plain status, so they are unchanged. Aligns with upstream rtk PR rtk-ai#2035. Council: Codex + mmax both APPROVE. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The compact
git statuspath rangit status --porcelain -b -uall. The-uallflag expands fully-untracked directories into every file, while rawgit statuscollapses them (e.g.node_modules/). This made rtk output larger than raw — measured ~29x on a 200-file untracked dir (5500B vs 191B) — violating RTK's compress-or-match-raw invariant and inflating tokens.Remove
-uallso untracked directories collapse exactly like raw. This keeps #991's actual fix intact: all modified/staged/renamed/conflict paths are still shown with no grouped summaries or... +N moreoverflow markers (-uallnever affected those lines). Untracked files in partially-tracked dirs and any paths git itself expands are still preserved by the formatter.Measured (rtk vs raw git status):