Skip to content

feat: add commit message normalizer#132

Open
marcus wants to merge 1 commit intomainfrom
feat/commit-message-normalizer-v17
Open

feat: add commit message normalizer#132
marcus wants to merge 1 commit intomainfrom
feat/commit-message-normalizer-v17

Conversation

@marcus
Copy link
Copy Markdown
Owner

@marcus marcus commented Apr 13, 2026

Summary

  • add td commit-message / td commit-msg, commit-message normalization helpers, and tracked commit-msg hook installation
  • preserve commit bodies and trailers while normalizing only the subject line, with worktree-safe hook symlinks and updated docs
  • leave Git-generated merge, revert, and autosquash subjects untouched so git revert and other special flows keep working

Testing

  • go test ./internal/git ./cmd
  • go test ./...
  • manual temp-repo exercise of git commit -m, editor-based git commit, and git revert --no-edit with the installed hooks

Add td commit-message normalization, hook installation, and docs/tests for standardized commit subjects. Preserve Git-generated merge, revert, and autosquash subjects so special Git flows continue to work unchanged.

Nightshift-Task: commit-normalize

Nightshift-Ref: https://github.com/marcus/nightshift
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