git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v4] peel_onion(): add support for <rev>^{tag}

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 3, 2013, 20:10 UTC
Message-ID
<xmqq7gexr7i3.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1378237816-28671-1-git-send-email-rhansen@bbn.com>
Richard Hansen <rhansen@bbn.com> writes:
Show 15 quoted lines
> diff --git a/t/t1511-rev-parse-caret.sh b/t/t1511-rev-parse-caret.sh
> index eaefc77..15973f2 100755
> --- a/t/t1511-rev-parse-caret.sh
> +++ b/t/t1511-rev-parse-caret.sh
> @@ -54,6 +54,13 @@ test_expect_success 'ref^{tree}' '
>  	test_must_fail git rev-parse blob-tag^{tree}
>  '
>  
> +test_expect_success 'ref^{tag}' '
> +	test_must_fail git rev-parse HEAD^{tag} &&
> +	git rev-parse commit-tag >expected &&
> +	git rev-parse commit-tag^{tag} >actual &&
> +	test_cmp expected actual
> +'
> +
Looks good to me.  Testing both failure case and success case.
Thanks; will queue.
Previous: Richard HansenNext: Jeff King
Message 2 of 5 in “peel_onion(): add support for <rev>^{tag}”
  1. peel_onion(): add support for <rev>^{tag}Richard Hansen, Sep 3, 2013
  2. Junio C HamanoSep 3, 2013
  3. 2/1 peel_onion: do not assume length of x_type globalsJeff King, Sep 3, 2013
  4. 2/1 peel_onion: do not assume length of x_type globalsJeff King, Sep 3, 2013
  5. Junio C HamanoSep 3, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.