Git commit message templates

Ed Maste emaste at freebsd.org
Thu Dec 17 20:58:46 UTC 2020


On Wed, 16 Dec 2020 at 17:35, John Baldwin <jhb at freebsd.org> wrote:
>
> The only one I'm not a fan of is the lack of punctuation for the first
> sentence.  Newspaper headlines also use additional capitalization
> (e.g. last word and "significant words"), so the current recommendation
> is a mix of things and not fully consistent with either one.

Fair point - considering the first line as one would an email subject
is probably the best approach.

If I look over the last year I see (using egrep -c on git log
--since=1year --oneline):

8383 commits
3715 end in .
4668 do not end in .

Of the 6372 commits less than 80 characters (including the short hash):

2416 end in .
4316 do not end in .

> I suspect in
> practice though that trailing punctuation might just vary by committer.
> (That seems to be what happens in some other projects I've looked
> at.)

Yes, I expect this will happen in our repository as well.


More information about the freebsd-git mailing list