Please use conventional commit messages (Re: git: 2a9b7ca2a362)

Mathieu Arnold mat at freebsd.org
Thu Apr 29 11:22:49 UTC 2021


On Thu, Apr 29, 2021 at 10:00:00AM +0000, Alexey Dokuchaev wrote:
> On Thu, Apr 29, 2021 at 11:45:56AM +0200, Mathieu Arnold wrote:
> > On Wed, Apr 28, 2021 at 11:53:46AM +0000, Alexey Dokuchaev wrote:
> > > On Wed, Apr 28, 2021 at 12:36:39PM +0200, Adriaan de Groot wrote:
> > > > On Wednesday, 28 April 2021 12:17:13 CEST Alexey Dokuchaev wrote:
> > > > > commit 2a9b7ca2a3620249bfad050ac3eee6d859926213
> > > > > ...
> > > > > 
> > > > >     Update `www/web2ldap' to version 1.5.117.
> > > > 
> > > > Please use conventional commit messages, [...]
> > > 
> > > I think it is conventional enough. [...]
> > 
> > The format of a commit message is documented there: [...]
> > 
> > Please follow it.
> 
> I know where it's documented; I might follow it at least for those
> commits where it doesn't look as bad as it looks for others (e.g.,
> which covert several ports).  However, I still didn't get the answer
> as to why we are duplicating inferrable metainformation rather than
> fixing the commit email template and/or configuring cgit properly.

Well, it has nothing to do with email, it has to do with how commits are
handled by Git.  In Git, the first line is the subject, and then you
have the body of the commit.  The subject is not only about email, for
example, if you run `git log --oneline`:

2d719a7528bd (HEAD -> main, origin/main, origin/HEAD) Update to 9.16.15.
92ca026aa01c dns/bind911: Update to 9.11.31.
4507e5034cf7 net/wireguard-kmod: Update to 0.0.20210428
e25cdb34606a sysutils/virtualmin: update to version 6.16.
004e688b9b43 audio/audacity Upgrade to 3.0.2
448693e731a7 www/chromium: update to 90.0.4430.93

or a more elaborate command like `git log --oneline --graph --date-order
--all`:

* 2d719a7528bd (HEAD -> main, origin/main, origin/HEAD) Update to 9.16.15.
* 92ca026aa01c dns/bind911: Update to 9.11.31.
| * 44436ff0b0c0 (origin/2021Q2, 2021Q2) Update to 9.16.15.
| * b273390548ec dns/bind911: Update to 9.11.31.
* | 4507e5034cf7 net/wireguard-kmod: Update to 0.0.20210428
* | e25cdb34606a sysutils/virtualmin: update to version 6.16.
* | 004e688b9b43 audio/audacity Upgrade to 3.0.2
| * a7dc410fd7d0 www/chromium: update to 90.0.4430.93
| * 1e5773db640e www/chromium: mark BROKEN on 11/i386 for now
| * 138633085148 www/chromium: update to 90.0.4430.85

You get only the first line, and the first line is where the most
important bits have to go.

-- 
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/dev-commits-ports-all/attachments/20210429/4f1b9002/attachment.sig>


More information about the dev-commits-ports-all mailing list