News for hackers. Stuff that matters.
Re:Using Git commit message templates to write better commit... by dkbrk on Wednesday January 12, 2022 @11:52PM (#29917001)
I hadn't hear of the 50-char recommendation before, just the 72-char limit.

In Emacs, magit and git-commit-mode accommodate this well, I just found. Setting git-commit-summary-max-length to 50 and fill-column to 72 has the behavior that a visual warning will be displayed if it goes over 50 chars but it'll only wrap at 72. The body also wraps at 72, of course.

Re:Using Git commit message templates to write better commit... by kevincox on Thursday January 13, 2022 @06:20AM (#29919463)
Hard-wrapping is a mistake. It seems like you can keep making the line-length shorter to make it like likely to run into the double-wrapping problem but the best solution is not to wrap and let the viewer wrap at their preferred width.