fix(display): tighten commit-output file-stats footer - #142
Merged
Conversation
Per-file +0/−0 counts now render as an empty column, matching git diff --stat which never shows zeros; the Σ total row still keeps both totals. Styling empty strings is skipped to avoid stray ANSI escapes mid-line.
The Σ total row already shows the total file count, so the ellipsis line now only says how many rows were cut.
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.
What
Two footer fixes for the landed
✓commit output (and its confirm-mode preview, which sharesemit_file_stats):6c8b541) — a file with+0or−0rendered a noise+0/−0column. Now the zero column renders blank, matchinggit diff --stat(which never shows zeros). TheΣtotal row keeps both totals even at zero, like git's own summary line. Column-width math is unchanged — the grid was already sized to the totals, so geometry is stable.079e216) —… N more (N files)said the same number twice; now just… N more.Deliberately not included
The exploratory spacing work from this branch (blank row between batch blocks, blank line between subject and body) was dropped after review — the landed output stays compact with no blank separation between the
[n/m]row and the commit contents:Verification
cargo test— 417 passed / 0 failedcargo fmt --all -- --check— cleancargo clippy --all-targets -- -D warnings— clean