On Wed, Apr 29, 2026 at 02:40:06PM -0400, Kenny Ho wrote:
>I am hoping to use Gerrit as a gate/check before developers
>send out their patches to the mailing list
>
so basically you want gerrit's merge/submit/integrate button to
git-send-email instead of pushing to the target repo.
so how about you make the gerrit repo a scratchpad? when changes are
merged, a hook send-emails the new commits. when the commits are
ultimately merged to the real repo, it is mirrored to the gerrit repo.
>Diff can still be included by changing Gerrit config. I have
>confirmed being able to do this.
>
excellent!
>> so far, it supports only topics,
>> which is basically just a special hashtag to aggregate changes (which
>> may or may not be related via their commit ancestry).
nothing i see here contradicts what i said.
it kind of works; my script suite (the git-gpick part in particular)
does actually rely on the relation chain to "divine" series, and it uses
the topics to tell apart series that have a physical dependency, but are
logically still separate.
however, there is still no actual entity that represents a series, and
therefore no good place to attach a cover letter to, or post comments on
the whole series. one could hack it by relying on a convention, for
example that the first commit includes the cover letter in the commit
message below a triple-dash line. this would require some advanced
manipulation in the mail hook, and gerrit's presentation of the info
would be way suboptimal.