Skip to content

fix(tui): avoid unnecessary diff reload#14872

Merged
davidpdrsn merged 1 commit into
masterfrom
dp-avoid-diff-reload
Jul 19, 2026
Merged

fix(tui): avoid unnecessary diff reload#14872
davidpdrsn merged 1 commit into
masterfrom
dp-avoid-diff-reload

Conversation

@davidpdrsn

Copy link
Copy Markdown
Contributor

Avoid reloading the diff when it is not needed.

If you were viewing `zz [uncommitted]` and a file was saved we'd always reload
the entire diff, even if the file that changed isn't actually part of the
status. This could happen if a file was `touch`'ed which our test suite does a
lot.

This fixes that so we only reload if the file that changed was part of the
previous status or the new one.
Copilot AI review requested due to automatic review settings July 19, 2026 21:41
@davidpdrsn
davidpdrsn enabled auto-merge July 19, 2026 21:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error: Your billing is not configured or you have Copilot licenses from multiple standalone organizations or enterprises. To use premium requests, select a billing entity via the GitHub site, under Settings > Copilot > Features.

@github-actions github-actions Bot added rust Pull requests that update Rust code CLI The command-line program `but` labels Jul 19, 2026
@davidpdrsn
davidpdrsn merged commit 0264401 into master Jul 19, 2026
39 checks passed
@davidpdrsn
davidpdrsn deleted the dp-avoid-diff-reload branch July 19, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLI The command-line program `but` rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants