All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ryan McCue <lists@rotorised.com>
To: Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: ls-tree and wildcards
Date: Sun, 13 May 2012 01:46:50 +1000	[thread overview]
Message-ID: <4FAE85EA.3050807@rotorised.com> (raw)
In-Reply-To: <CACsJy8A73D_39ND-aqF0nECcKqjLHeqvEJ_XbT3BJd-0cLV1Nw@mail.gmail.com>

Nguyen Thai Ngoc Duy wrote:
> I don't think it ever does. There's a mention of "patterns" in ls-tree
> man page, which is misleading.

Aha, I thought this might be the case. Thanks, I'll grep ls-tree then.

> A question that might help us understand your use case and give a
> better advice, or improve the system: why do you need that?

I need to be able to get all files starting with a certain string 
("screenshot-" in this case) with certain extensions ("png", "jpg", 
"jpeg" or "gif" in this case). Passing into grep will do the trick, but 
a single command is my preferred option if it exists.

I don't mind this not existing in git (given that piping into grep will 
work just as well), but reading "patterns" on the man page made me think 
it may exist. I think the wording of that should probably be changed to 
avoid confusion.

Thanks for the response.
-- 
Ryan McCue
<http://ryanmccue.info/>

  reply	other threads:[~2012-05-12 15:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-12 15:07 ls-tree and wildcards Ryan McCue
2012-05-12 15:40 ` Nguyen Thai Ngoc Duy
2012-05-12 15:46   ` Ryan McCue [this message]
2012-05-14 16:43 ` Junio C Hamano
2012-05-15 11:29   ` Nguyen Thai Ngoc Duy
2012-05-15 15:35     ` Junio C Hamano

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=4FAE85EA.3050807@rotorised.com \
    --to=lists@rotorised.com \
    --cc=git@vger.kernel.org \
    --cc=pclouds@gmail.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.