π€ Limit git status output to reduce console spam #258
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.
Reduces console noise from background git status polling by increasing the bash truncate limit.
Changes
Increase bash truncate limit to 80 lines
Changed from 50 β 80 lines for the
truncateoverflow policy. This provides better debugging context for git status output while still preventing excessive spam.Before (50 lines):
After (80 lines):
Note on SHOW_BRANCH truncation
Initially considered truncating
git show-branchoutput before parsing, but this would break ahead/behind counting inparseGitShowBranchForStatuswhich iterates all commit lines. The 80-line truncate limit is sufficient for most cases, and thetruncateoverflow policy ensures we don't spam temp files.Dependencies
Built on top of #256 which adds the
overflow_policyfeature.Generated with
cmux