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

Re: [RFD] Expanded Pretty Format Placeholders Proposal

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 18, 2011, 07:18 UTC
Message-ID
<7vipvgzyl0.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1300399206.2004.22.camel@walleee>
Will Palmer <wmpalmer@gmail.com> writes:
Show 9 quoted lines
>> I somehow had an impression that you will be using "" to quote strings to
>> protect leading or trailing whitespaces, and if you were to support double
>> quotes anyway, \" and \\ become a very natural thing to do (so does your
>> "close parenthesis inside dq").
>
> I do have double-quoted strings implemented, but in trying to break the
> big-ugly-POC patch down into more-manageable changes, I questioned the
> need for it when %x20 or the "magic" space-if-nonempty might do just as
> well for most cases, so I took it out of the initial patch.

True enough; %x20 is probably acceptable and %xXX is what we already have anyway. Besides, values in the configuration file needs to use dq when they have whitespaces in them, and it would make it trickier to read if the language used in value (i.e. the one you are designing when used as part of alias) overused dq and bs.

I wasn't objecting to %-quoting. I just wanted to make sure that the reason you favored it over dq was sane and well thought out.

Thanks.
Previous: Will Palmer
Message 5 of 5 in “[RFD] Expanded Pretty Format Placeholders Proposal”
  1. Will PalmerMar 11, 2011
  2. Will PalmerMar 17, 2011
  3. Junio C HamanoMar 17, 2011
  4. Will PalmerMar 17, 2011
  5. Junio C HamanoMar 18, 2011

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.