Subject: Re: [PATCH 4/4] cherry-pick: Add `--empty` for more robust redundant commit handling

From: Junio C Hamano <[email-masked]>
Date: Sun, 21 Jan 2024 14:41:37 -0800

Brian Lyles <[email-masked]> writes:

>> Trailing whitespace on this line.
>
> Thank you -- This will be corrected with v2.
>
> Is the sample pre-commit hook the ideal way to prevent this in the
> future?

The example we ship in templates/hooks--pre-commit.sample in our
source has such a check at the end of it.