On Sat, May 12, 2012 at 12:24 PM, Eric Schulte <[email protected]> wrote: > Hi, > > In the following recent diatribe [1] Linus Torvalds shares a number of > rules for properly formatting git commit messages including. > - each commit should start with a short, single-line, <=50 char summary > followed by an empty line > - every other line should be <=72 chars (excepting non-prose, like > compiler output) > > Should magit add editor support for maintaining these standards in the > log-edit buffer? The magit-log-edit-mode-hook already exists which > could be used to do this in ones personal configuration. Has anyone > done this who would be willing to share their setup? > > Thanks, > > Footnotes: > [1] https://github.com/torvalds/linux/pull/17#issuecomment-5654674 >
There is a git-commit-mode out there. There was some discussion about integrating it into Magit[1], but nothing ever came of it. It's already fairly easy to maintain those standards in Emacs, if one is interested in maintaining those standards. Wrapping the lines in a paragraph is as easy as pressing M-q. [1] https://groups.google.com/group/magit/browse_thread/thread/2cca7dd1f3e65433/92ee88ba7add2b8c -PJ Gehm's Corollary to Clark's Law: Any technology distinguishable from magic is insufficiently advanced.
