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

Re: [PATCH v3 2/2] git: submodule honor -c credential.* from command line

From
Jeff King <peff@peff.net>
Date
Feb 26, 2016, 06:07 UTC
Message-ID
<20160226060743.GB24517@sigill.intra.peff.net>
In-Reply-To
<CAPig+cRM_1JLfBiOqo+-EdKbXp--4VUbddKN_zpSCSLK8PT09w@mail.gmail.com>
On Thu, Feb 25, 2016 at 09:26:14PM -0500, Eric Sunshine wrote:
Show 14 quoted lines
> On Thu, Feb 25, 2016 at 9:19 PM, Jacob Keller <jacob.keller@gmail.com> wrote:
> > On Thu, Feb 25, 2016 at 5:55 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
> >> Not worth a re-roll, but these quote sequences are brain-melting.
> >> Easier would have been to double-quote the second argument of
> >> test_expect_success() and then do either:
> >
> > They are. I fiddled with things till I got it working. I wasn't sure
> > if double quotes would cause a problem or not, since most other tests
> > seemed to avoid it.
> 
> You normally want variable interpolations within the test to happen
> when the test is actually run rather than when it is defined, which is
> why single quotes are normally used. But this test doesn't use any
> variable interpolations, so double quotes won't hurt it.

Of the two you suggested, I think I like the here-doc better, as it does not leave any question to a reader that there is other interpolation going on.

-Peff
Previous: Jacob KellerNext: Jacob Keller
Message 7 of 15 in “t/lib-http/apache.conf: load mod_unixd module in apache 2.4”
  1. 1/2 t/lib-http/apache.conf: load mod_unixd module in apache 2.4Jacob Keller, Feb 25, 2016
  2. 2/2 git: submodule honor -c credential.* from command lineJacob Keller, Feb 25, 2016
  3. Eric SunshineFeb 26, 2016
  4. Jacob KellerFeb 26, 2016
  5. Eric SunshineFeb 26, 2016
  6. Jacob KellerFeb 26, 2016
  7. Jeff KingFeb 26, 2016
  8. Jacob KellerFeb 26, 2016
  9. Jeff KingFeb 25, 2016
  10. Junio C HamanoFeb 25, 2016
  11. Junio C HamanoFeb 25, 2016
  12. Junio C HamanoFeb 25, 2016
  13. Jacob KellerFeb 25, 2016
  14. Junio C HamanoFeb 25, 2016
  15. Jacob KellerFeb 25, 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.