Thread (11 messages) flat view 11 messages, 9 authors, 2016-06-15

Re: Wrap commit messages on `git commit -m`

From: Thomas Adam <hidden>
Date: 2016-06-15 22:55:10

Hi,

On 1 November 2012 16:07, Ramkumar Ramachandra [off-list ref] wrote:
Hi,

Some of my colleagues are lazy to fire up an editor and write proper
commit messages- they often write one-liners using `git commit -m`.
However, that line turns out to be longer than 72 characters, and the
resulting `git log` output is ugly.  So, I was wondering if it would
be a good idea to wrap these one-liners to 72 characters
automatically.
Can't you do this already?  From "git-log(1)":

 %w([<w>[,<i1>[,<i2>]]]): switch line wrapping, like the -w
option of git-shortlog(1).

-- Thomas Adam
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help