public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Ryan McCue <lists@rotorised•com>
To: git@vger•kernel.org
Subject: ls-tree and wildcards
Date: Sun, 13 May 2012 01:07:41 +1000	[thread overview]
Message-ID: <4FAE7CBD.3020605@rotorised.com> (raw)

Good evening folks,

I'm attempting to grab relevant information for files in a tree matching 
a given pattern with wildcards. The help for ls-tree indicates that it 
can accept a pattern of files to match, however I'm not able to see that.

$ git ls-tree origin/master
...
100644 blob 8c391e8fb44a38e1389a710ebf8af79612e592a6    screenshot-1.png
100644 blob ecb7159c1c02567e9cd5da83c254c538d331f733    screenshot-2.png
100644 blob f58eea7e27f98c01038262b823aa73ccd64cb01e    screenshot-3.png
100644 blob 07e64def408145660cee657a46947077374762cc    screenshot-4.png
$ git ls-tree origin/master screenshot*
$

(I've also tried quoting to ensure it's not bash playing up)

Is there some issue with the command I'm issuing? The documentation 
seems to indicate that I should be getting back the files which match 
the pattern.

Thanks,

-- 
Ryan McCue
<http://ryanmccue.info/>

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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-12 15:07 Ryan McCue [this message]
2012-05-12 15:40 ` ls-tree and wildcards Nguyen Thai Ngoc Duy
2012-05-12 15:46   ` Ryan McCue
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=4FAE7CBD.3020605@rotorised.com \
    --to=lists@rotorised$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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