All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Duy Nguyen <pclouds@gmail.com>
Cc: Andy Spencer <andy753421@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH] tree_entry_interesting: match against all pathspecs
Date: Mon, 27 Jan 2014 08:57:40 -0800	[thread overview]
Message-ID: <xmqq4n4ppdkr.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <20140125224833.GA19549@lanh> (Duy Nguyen's message of "Sun, 26 Jan 2014 05:48:33 +0700")

Duy Nguyen <pclouds@gmail.com> writes:

> Ack. Perhaps this on top to verify it
>
> -- 8< --
> diff --git a/t/t4010-diff-pathspec.sh b/t/t4010-diff-pathspec.sh
> index af5134b..d9f37c3 100755
> --- a/t/t4010-diff-pathspec.sh
> +++ b/t/t4010-diff-pathspec.sh
> @@ -110,4 +110,17 @@ test_expect_success 'diff-tree -r with wildcard' '
>  	test_cmp expected result
>  '
>  
> +test_expect_success 'diff multiple wildcard pathspecs' '
> +	mkdir path2 &&
> +	echo rezrov >path2/file1 &&
> +	git update-index --add path2/file1 &&
> +	tree3=`git write-tree` &&
> +	git diff --name-only $tree $tree3 -- "path2*1" "path1*1" >actual &&
> +	cat <<EOF >expect &&
> +path1/file1
> +path2/file1
> +EOF
> +	test_cmp expect actual
> +'
> +
>  test_done
> -- 8< --

Thanks, both.  Will queue.

      reply	other threads:[~2014-01-27 16:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-25 22:06 [PATCH] tree_entry_interesting: match against all pathspecs Andy Spencer
2014-01-25 22:48 ` Duy Nguyen
2014-01-27 16:57   ` Junio C Hamano [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=xmqq4n4ppdkr.fsf@gitster.dls.corp.google.com \
    --to=gitster@pobox.com \
    --cc=andy753421@gmail.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.