On Thu, Sep 07, 2023 at 09:29:33AM -0600, Martin Fick wrote:
>On Sun, Sep 3, 2023 at 1:02 PM Michael Nazzareno Trimarchi <
mic...@amarulasolutions.com> wrote:
>> Commit message header
>>
>> Description.....
>>
>> ----
>> Change v3->v4
>> Some info. This sometime happen when someone propose a new version using
>> mailing list and this paper is not applied by git
>> ---
>> Change code
>>
>>
>> git push origin HEAD:refs/for/master
>>
>>
>> Now the code get in to Gerrit and nice to have changelog in the the upload
>>
>> This way the code land with some info more for reviewer
>>
>
>I believe this is actually called a "cover letter" on most mailing
>lists.
>
no, it's not.
the cover letter concept is explained in git-send-email(1).
(*)
what michael is talking about is essentially a commit message on the
inter-diff between patchsets.
git-am strips everything after the first separator line, so one can just
include this "meta-meta" info without it ending up in the commit
history. gerrit could easily replicate this behavior in cherry-pick
mode.
i somewhat question the usefulness of this, though.
firstly, inter-diff display is a rather essential and easily accessible
feature in gerrit, so there is usually little use in wasting words on
summarizing the changes.
secondly, when really necessary, one can simply post a comment after
pushing the new patchset.
(*) side notes:
- when a cover letter is included, it's conventional for it to contain a
changelog as well. but that doesn't preclude each commit from having
its own, too.
- git-send-email --range-diff will generate something akin to gerrit's
inter-diffs. but as this feature can document commit additions and
deletions, it exists on a series level, and therefore the output ends
up in a cover letter.
but i noticed that people don't use this as a replacement for manual
changelogs, only an addition. i guess this makes sense, as the purely
textual range-diff is still a lot harder to read than gerrit's
inter-diff.
regards