Skip to content

Fix dirty submodule state in short output#2179

Open
dpersek wants to merge 1 commit into
dandavison:mainfrom
dpersek:fix/submodule-dirty-state
Open

Fix dirty submodule state in short output#2179
dpersek wants to merge 1 commit into
dandavison:mainfrom
dpersek:fix/submodule-dirty-state

Conversation

@dpersek

@dpersek dpersek commented Jun 27, 2026

Copy link
Copy Markdown

This fixes #1838.

It preserves the '-dirty' suffix when delta renders short submodule diffs. The commit hash is still shortened as before, but the dirty marker is no longer dropped. I added focused coverage for clean and dirty submodule commit lines and updated the existing dirty submodule fixture.

Tests run:

  • cargo test
  • cargo fmt -- --check
  • git diff --check

AI note: I used AI assistance for the implementation/testing pass and reviewed the diff locally before opening this.

Preserve the -dirty suffix when shortening submodule commit IDs so short submodule diffs show dirty working tree state.
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.

🚀 Indicate submodule dirty state

1 participant