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

Re: Segfault in the attr stack

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 1, 2016, 22:35 UTC
Message-ID
<xmqqlh2ownab.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAGZ79kZ6dh7AP5b5N_2RRHQmq=OKpr05JEwyOCbfOj6KWjFC2A@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
Show 9 quoted lines
> I propose to not escape commas, but use
> white spaces instead, i.e.
>
>     git status ':(attr:whitespace=indent trail space,attr:label=with
> more values)' ':attr(attr:foo:bar)'
>
> would match
> * all files that have the whitespace AND the label setting (matching
> exactly the values)

"attr:whitespace=indent trail ..whatever other stuff.." is already a non-starter. In the example in the message you are responding to, I want to find paths whose "whitespace" attribute is set to the exact string "indent,trail,space". And I do not want the pathspec magic code to know how the interpretation of "whitespace" attribute treats comma in the string. It may or may not have any special meaning, so if you meant "whitespace=indent trail ..whatever other stuff.." to mean "either whitespace is set to indent, or whitespace is set to trail", then that is already unacceptable.

Previous: Stefan BellerNext: Stefan Beller
Message 4 of 12 in “Segfault in the attr stack”
  1. Stefan BellerJun 1, 2016
  2. Junio C HamanoJun 1, 2016
  3. Stefan BellerJun 1, 2016
  4. Junio C HamanoJun 1, 2016
  5. Stefan BellerJun 1, 2016
  6. Junio C HamanoJun 1, 2016
  7. Junio C HamanoJun 1, 2016
  8. Junio C HamanoJun 2, 2016
  9. Junio C HamanoJun 2, 2016
  10. Stefan BellerJun 2, 2016
  11. Duy NguyenJun 2, 2016
  12. Duy NguyenJun 2, 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.