[PATCH v2] devtools: check for supported git version

David Marchand david.marchand at redhat.com
Wed Oct 26 08:24:33 CEST 2022


On Tue, Oct 25, 2022 at 12:15 PM Ali Alnubani <alialnu at nvidia.com> wrote:
>
> The script devtools/parse-flow-support.sh uses the git-grep
> option (-o, --only-matching), which is only supported from
> git version 2.19 and onwards.[1]
>
> The script now exits early providing a clear message to the user
> about the required git version instead of showing the following
> error messages multiple times:
>   error: unknown switch `o'
>   usage: git grep [<options>] [-e] <pattern> [<rev>...] [[--] <path>...]
>   [..]
>
> [1] https://github.com/git/git/blob/v2.19.0/Documentation/RelNotes/2.19.0.txt
>
> Signed-off-by: Ali Alnubani <alialnu at nvidia.com>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>

I don't have a "non working" git, but the patch lgtm.

Acked-by: David Marchand <david.marchand at redhat.com>


-- 
David Marchand



More information about the dev mailing list