Skip to content

fix: generate commit messages for media-only changes - #4

Merged
ozerozdas merged 1 commit into
masterfrom
fix/media-only-commit-message
Sep 25, 2026
Merged

ozerozdas merged 1 commit into
masterfrom
fix/media-only-commit-message

Conversation

@ozerozdas

Copy link
Copy Markdown
Contributor

Summary

  • Binary hunks are no longer dropped in optimizeDiff. Without --binary, git emits header-only binary hunks, so the path and file mode are enough for the model to describe media-only commits.
  • Lock/generated files are still skipped; warning messages no longer mention "binary".
  • Also applies to PR content generation: media files in a branch now reach the prompt.

Refs NVC-3

Test plan

  • npx jest (107/107), plus a new test asserting binary hunks are kept
  • tsc --noEmit, eslint, prettier
  • Manual: stage only an image, run "Nuvo Commit: Generate"

🤖 Generated with Claude Code

Binary hunks were dropped from the diff, so commits containing only
media files ended with "all files are ignored". Git emits header-only
binary hunks without --binary, so keep them: the path and file mode
give the model enough to describe the change.

Refs NVC-3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ozerozdas
ozerozdas merged commit 9448e9a into master Sep 25, 2026
2 checks passed
@ozerozdas
ozerozdas deleted the fix/media-only-commit-message branch September 25, 2026 11:39
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.

1 participant