Subject: Re: [PATCH v2] hooks: add sendemail-validate-series

From: Junio C Hamano <[email-masked]>
Date: Tue, 11 Apr 2023 08:58:41 -0700

Phillip Wood <[email-masked]> writes:

> A hook that wants to check some property of the whole series needs to
> know which patch is the final one. We could pass that via the
> environment as we do for external diff commands with
> GIT_DIFF_PATH_COUNTER and GIT_DIFF_PATH_TOTAL.

Ahh, I forgot that we added them to deal with "I am called
repeatedly, where is the end of the series of calls?" question,
which exactly is the same issue.  Glad that you brought it up.

Thanks.