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

Re: [PATCH 1/1] t3206-range-diff.sh: cover single-patch case

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 11, 2018, 21:11 UTC
Message-ID
<xmqqzhwnn3hw.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<xmqq4levoinl.fsf@gitster-ct.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
>> +test_expect_success 'format-patch --range-diff as commentary' '
>> +	git format-patch --stdout --range-diff=HEAD~1 HEAD~1 >actual &&
>> +	grep -A 1 -e "\-\-\-" actual | grep "Range-diff:"
>
> Isn't "grep -A" GNUism?
Sorry for short-write(2) X-<.
Perhaps
	sed -ne "/^---$/,+1/s/^Range-diff:/&/p"
or something along that line.
Previous: Junio C HamanoNext: Stefan Beller
Message 4 of 11 in “Add coverage for 'git format-patch --range-diff' single-patch case”
  1. 0/1 Add coverage for 'git format-patch --range-diff' single-patch caseDerrick Stolee via GitGitGadget, Sep 11, 2018
  2. 1/1 t3206-range-diff.sh: cover single-patch caseDerrick Stolee via GitGitGadget, Sep 11, 2018
  3. Junio C HamanoSep 11, 2018
  4. Junio C HamanoSep 11, 2018
  5. Stefan BellerSep 11, 2018
  6. Eric SunshineSep 11, 2018
  7. Derrick StoleeSep 12, 2018
  8. Derrick StoleeSep 11, 2018
  9. Eric SunshineSep 11, 2018
  10. 0/1 Add coverage for 'git format-patch --range-diff' single-patch caseDerrick Stolee via GitGitGadget, Sep 12, 2018
  11. 1/1 t3206-range-diff.sh: cover single-patch caseDerrick Stolee via GitGitGadget, Sep 12, 2018

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.