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

Re: [PATCH] Move format-patch base commit and prerequisites before email signature

From
Josh Triplett <josh@joshtriplett.org>
Date
Sep 14, 2016, 23:52 UTC
Message-ID
<20160914235231.GA12672@cloud>
In-Reply-To
<xmqqmvjaozrz.fsf@gitster.mtv.corp.google.com>
On Wed, Sep 14, 2016 at 03:57:36PM -0700, Junio C Hamano wrote:
Show 10 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
> 
> > I do not mind doing it myself, but I am already in today's
> > integration cycle (which will merge a handful of topics to
> > 'master'), so I won't get around to it for some time.  If you are
> > inclined to, please be my guest ;-)
> 
> I queued this on top for now; I think it can be just squashed into
> your patch.  Please say "I agree" and I'll make it happen, or say
> "that's wrong" followed by a replacement patch ;-).
"I agree". :)

I'd suggest squashing in an *additional* patch to the testsuite to ensure the presence of the blank line:

diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh
index 535857e..8d90a6e 100755
--- a/t/t4014-format-patch.sh
+++ b/t/t4014-format-patch.sh
@@ -1515,8 +1515,9 @@ test_expect_success 'format-patch -o overrides format.outputDirectory' '
 
 test_expect_success 'format-patch --base' '
 	git checkout side &&
-	git format-patch --stdout --base=HEAD~3 -1 | tail -n 6 >actual &&
-	echo "base-commit: $(git rev-parse HEAD~3)" >expected &&
+	git format-patch --stdout --base=HEAD~3 -1 | tail -n 7 >actual &&
+	echo >expected &&
+	echo "base-commit: $(git rev-parse HEAD~3)" >>expected &&
 	echo "prerequisite-patch-id: $(git show --patch HEAD~2 | git patch-id --stable | awk "{print \$1}")" >>expected &&
 	echo "prerequisite-patch-id: $(git show --patch HEAD~1 | git patch-id --stable | awk "{print \$1}")" >>expected &&
 	signature >> expected &&
Previous: Junio C HamanoNext: Junio C Hamano
Message 13 of 14 in “Move format-patch base commit and prerequisites before email signature”
  1. Move format-patch base commit and prerequisites before email signatureJosh Triplett, Sep 8, 2016
  2. Junio C HamanoSep 8, 2016
  3. Josh TriplettSep 8, 2016
  4. Junio C HamanoSep 8, 2016
  5. Jeff KingSep 8, 2016
  6. Junio C HamanoSep 8, 2016
  7. Junio C HamanoSep 9, 2016
  8. Josh TriplettSep 9, 2016
  9. Junio C HamanoSep 9, 2016
  10. Josh TriplettSep 9, 2016
  11. Junio C HamanoSep 9, 2016
  12. Junio C HamanoSep 14, 2016
  13. Josh TriplettSep 14, 2016
  14. Junio C HamanoSep 15, 2016

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.