Show gitit: Format commit messages with commitmsgfmt

8 comments · 83% upvoted · source · other discussions

comments

ForeverAlot [OP]

I spent more time than I'll ever make up for writing something nobody will ever read about how a problem no one else has led to making a tool that nobody will ever use. Enjoy, I guess.

rangeCheck

If neither your VCS nor your text editor of choice provide any means of integration, commitmsgfmt cannot help you, period.

Well git has a hook called commit-msg so you can always use that.

alfunx

Above that, it says

If you have had trouble formatting commit messages but your text editor cannot delegate text formatting you can still use the alternative Git hook integration.

And also

If neither your VCS

doesn't refer to Git necessarily.

neodon
[deleted]

[deleted]

parkerSquare

Hmm, I always do. I don't find it awful though - why would it be unpleasant?

alfunx

Because the first line is supposed to be a subject line, which should be treated like a title. And you don't end a title with a period.

Other than that, the subject line is de facto also limited to 50 characters, so a period also a "waste" here.

parkerSquare

Hmm, I obviously don't spend as much time on my commit messages as some other people!