Re: Wrap commit messages on `git commit -m`
- From
Lars Gullik Bjønnes <larsbj@gullik.org>
- Date
- Nov 1, 2012, 16:29 UTC
- Message-ID
- <m3a9v170ca.fsf@black.gullik.net>
- In-Reply-To
- <CALkWK0kQ+qCsOa87yY4wma279mp+9h+LFv3qCP_qrNdDyGNcsQ@mail.gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
| 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.
git commit -m 'foo: fix this problem
This problem is fixed by doing foo, bar and baz.
Signed-off-by: me '
works.
-- Lgb