Skip to content

fix(git): preserve log stat summary lines#2161

Open
arasovic wants to merge 1 commit into
rtk-ai:developfrom
arasovic:fix/git-log-stat-summary-preservation
Open

fix(git): preserve log stat summary lines#2161
arasovic wants to merge 1 commit into
rtk-ai:developfrom
arasovic:fix/git-log-stat-summary-preservation

Conversation

@arasovic
Copy link
Copy Markdown

Summary

Fixes #1704.
Related: #611.
Prior art: #698.

Test plan

Manual output now keeps the summary visible for both boundary and truncated stat blocks:

3c84db2 10 files (9 minutes ago) <Repro>
  y1.txt  | 1 +
  y10.txt | 1 +
  y2.txt  | 1 +
  y3.txt  | 1 +
  [+6 file rows omitted]
  10 files changed, 10 insertions(+)
8f4835b 4 files (9 minutes ago) <Repro>
  w1.txt | 1 +
  w2.txt | 1 +
  w3.txt | 1 +
  w4.txt | 1 +
  4 files changed, 4 insertions(+)

Snapshot tests are not applicable; this change does not touch insta snapshots.
Token-savings validation is not applicable as a standalone gate because this is a correctness fix for an existing filter path, not a new filter.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 29, 2026

CLA assistant check
All committers have signed the CLA.

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.

git log --stat drops summary line on 4+ file commits; omit marker conflates file rows with metadata

2 participants