# Re: \[PATCH v2 2/3\] range-diff: consistently validate the arguments

- From: Junio C Hamano \<hidden\>
- Date: 2022-08-26 16:54:25 
- List: git
- Page: https://ratatoskr.run/git/2022/08/7955053
- Thread: https://ratatoskr.run/git/2022/08/7955053/t.md

```text
"Johannes Schindelin via GitGitGadget" [ref]
writes:

> From: Johannes Schindelin <redacted>
>
> This patch lets `range-diff` validate the arguments not only when
> invoked with one or two arguments, but also in the code path where three
> arguments are handled.
>
> While at it, we now use `usage_msg_opt*()` consistently.
>
> Signed-off-by: Johannes Schindelin <redacted>
> ---
>  builtin/range-diff.c | 41 +++++++++++++++++++++++++++++------------
>  1 file changed, 29 insertions(+), 12 deletions(-)

Very nice.  The updated series is worth having if only for this
step.  Very very pleasing.

```
