| Crates.io | commitfmt |
| lib.rs | commitfmt |
| version | 0.0.1 |
| created_at | 2025-09-30 04:11:29.825904+00 |
| updated_at | 2025-09-30 04:11:29.825904+00 |
| description | A git commit message formatter |
| homepage | |
| repository | https://github.com/jfernandez/commitfmt |
| max_upload_size | |
| id | 1860583 |
| size | 26,041 |
A git commit message formatter written in Rust.
.commitfmt.tomlcargo install commitfmt
Or build from source:
cargo install --path .
cat commit.txt | commitfmt
commitfmt COMMIT_EDITMSG
Add to your git config:
git config --global core.editor "nvim"
Then use with a git hook in .git/hooks/commit-msg:
#!/bin/sh
commitfmt "$1"
Create .commitfmt.toml in your project:
subject_max_length = 50
body_max_line_length = 72
# (git comments/diffs) are preservedMIT