From: Thomas Monjalon <thomas@monjalon.net>
To: Ali Alnubani <alialnu@nvidia.com>
Cc: Ferruh Yigit <ferruh.yigit@amd.com>,
David Marchand <david.marchand@redhat.com>,
dev@dpdk.org, Chaoyong He <chaoyong.he@corigine.com>
Subject: Re: [PATCH v2] devtools: check for supported git version
Date: Mon, 31 Oct 2022 16:46:34 +0100 [thread overview]
Message-ID: <5871955.31tnzDBltd@thomas> (raw)
In-Reply-To: <SJ0PR13MB55450F23EA03A5AABB35A6A59E309@SJ0PR13MB5545.namprd13.prod.outlook.com>
26/10/2022 10:34, Chaoyong He:
> > On 10/26/2022 7:24 AM, David Marchand wrote:
> > > On Tue, Oct 25, 2022 at 12:15 PM Ali Alnubani <alialnu@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@nvidia.com>
> > >> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> > >
> > > I don't have a "non working" git, but the patch lgtm.
> > >
> > > Acked-by: David Marchand <david.marchand@redhat.com>
> > >
> >
> > +Chaoyong,
> >
> > He had observed the problem, perhaps he can help to test.
>
> I test in my host, it does work.
>
> $ git --version
> git version 2.18.5
>
> Before this patch:
> $ ./devtools/check-doc-vs-code.sh
> error: unknown switch `o'
> usage: git grep [<options>] [-e] <pattern> [<rev>...] [[--] <path>...]
> --cached search in index instead of in the work tree
> ...
> repeat many times.
>
> After this patch:
> $ ./devtools/check-doc-vs-code.sh
> git version >= 2.19 is required
Applied, thanks.
prev parent reply other threads:[~2022-10-31 15:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-24 15:37 [PATCH] " Ali Alnubani
2022-10-25 8:39 ` David Marchand
2022-10-25 10:15 ` [PATCH v2] " Ali Alnubani
2022-10-26 6:24 ` David Marchand
2022-10-26 7:52 ` Ferruh Yigit
2022-10-26 8:34 ` Chaoyong He
2022-10-31 15:46 ` Thomas Monjalon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5871955.31tnzDBltd@thomas \
--to=thomas@monjalon.net \
--cc=alialnu@nvidia.com \
--cc=chaoyong.he@corigine.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).