Re:Linus: please write good git commit messages
by wnoise on Sunday November 27, 2011 @06:19PM
(#3283701)
You might be interested in the program "par", which uses dynamic programming to optimize the line breaks, and can automatically handle such things as text prefixed by "> ".
http://www.nicemice.net/par/