Re: [RFC/PATCH] pathspec: allow escaped query values
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 2, 2016, 18:58 UTC
- Message-ID
- <CAPc5daWQYRbV_Oc-xCKE2R_O=aMBm_g_CLB=RPUam7EtbGPTgQ@mail.gmail.com>
- In-Reply-To
- <57507DFD.6010800@ramsayjones.plus.com>
On Thu, Jun 2, 2016 at 11:42 AM, Ramsay Jones <ramsay@ramsayjones.plus.com> wrote:
Show 7 quoted lines
>> >> That would be workable, I would think. Before attr:VAR=VAL >> extention, supported pathspec <magic> were only single lowercase-ascii >> alphabet tokens, so nobody would have used " as a part of magic. So >> quting with double-quote pair would work. > > I was thinking about both ' and ", so that you could do:
Yes, I understood your suggestion as such. Quoting like shells would work without breaking backward compatibility for the same reason quoting with double-quote and backslash only without supporting single-quotes would work.