From: Felipe Contreras <felipe.contreras@gmail.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>,
"Felipe Contreras" <felipe.contreras@gmail.com>
Cc: Shoaib Meenai <smeenai@fb.com>,
"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: [BUG] ** glob pattern in git diff doesn't match root directory
Date: Tue, 27 Apr 2021 14:58:19 -0500 [thread overview]
Message-ID: <60886cdb7c3a2_222c20818@natae.notmuch> (raw)
In-Reply-To: <87h7ju21kg.fsf@evledraar.gmail.com>
=?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason wrote:
> On Sat, Apr 24 2021, Felipe Contreras wrote:
> > I stumbled upoon a very similar issue (I wanted to find all the *.jpg in
> > the repository). I couldn't find another way to do it but:
> >
> > git diff ':(glob)**/foo'
>
> Maybe I'm missing something, but if you want to find all *.jpg isn't
> that just:
>
> git diff '*.jpg'
>
> ?
Right, actually I misremembered; it was all '.gitignore' files.
If I do '*.gitignore' that matches all the files, but also any
$x.gitignore files. If I want only '.gitignore' files I need
':(glob)**/.gitignore'.
Cheers.
--
Felipe Contreras
next prev parent reply other threads:[~2021-04-27 19:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-24 2:52 [BUG] ** glob pattern in git diff doesn't match root directory Shoaib Meenai
2021-04-24 3:31 ` Felipe Contreras
2021-04-26 8:23 ` =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason
2021-04-27 19:58 ` Felipe Contreras [this message]
2021-04-26 20:45 ` Shoaib Meenai
2021-04-26 8:23 ` =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason
2021-04-26 20:48 ` Shoaib Meenai
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=60886cdb7c3a2_222c20818@natae.notmuch \
--to=felipe.contreras@gmail.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=smeenai@fb.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.