[Insight-developers] Auto line breaks in commit messages?

Brad King brad.king at kitware.com
Tue May 3 11:47:35 EDT 2011


On 05/03/2011 11:18 AM, David Doria wrote:
> When I commit, it opens vi and I type the commit message. When I then
> push to gerrit, the commit message shows up as one big long line. Is
> there any way to automatically break the commit message into < 80
> character lines before being pushed? I'm sure there is an editor
> setting to break the lines, but it would be easier for new folks if it
> was done automatically.

One never knows when there is an intentional long line with ascii-art or
something.  We cannot auto-format messages.  In your vim, finish with
"gqap" in command mode to format the paragraph.

-Brad


More information about the Insight-developers mailing list