Phillip Wood <phillip.wood123@xxxxxxxxx> 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.