Git development
 help / color / mirror / Atom feed
From: larsbj@gullik.org (Lars Gullik Bjønnes)
To: git@vger.kernel.org
Subject: Re: Wrap commit messages on `git commit -m`
Date: Thu, 01 Nov 2012 17:29:56 +0100	[thread overview]
Message-ID: <m3a9v170ca.fsf@black.gullik.net> (raw)
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

  reply	other threads:[~2012-11-01 21:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-01 16:07 Wrap commit messages on `git commit -m` Ramkumar Ramachandra
2012-11-01 16:29 ` Lars Gullik Bjønnes [this message]
2012-11-01 21:52   ` Kevin
2012-11-01 22:12     ` Jonathan Nieder
2012-11-02 19:37       ` Ramkumar Ramachandra
2012-11-03  6:38         ` Jonathan Nieder
2012-11-03  7:41           ` David Aguilar
2012-11-03 18:51             ` Phil Hord
2012-11-04  7:27   ` Tay Ray Chuan
2012-11-01 18:12 ` Thomas Adam
2012-11-01 21:10   ` James Nylen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3a9v170ca.fsf@black.gullik.net \
    --to=larsbj@gullik.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox