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

Re: RFC: git bisect should accept "paths-to-be-excluded"

From
Piotr Krukowiecki <piotr.krukowiecki@gmail.com>
Date
Sep 17, 2013, 19:41 UTC
Message-ID
<CAA01Csp6tjKJ9LqX+9qcJL4t3kfFJCagjZQ=QwddvscPori9Ow@mail.gmail.com>
In-Reply-To
<xmqqpps7xoax.fsf@gitster.dls.corp.google.com>
On Tue, Sep 17, 2013 at 9:04 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Piotr Krukowiecki <piotr.krukowiecki@gmail.com> writes:
>
>>  What about simply iterating over options in order in which they
>>  are specified and the last option that matches specifies the
>>  result?
>
> But isn't it very inconsistent from the way normal pathspec works?
> "git log -- A B" and "git log -- B A" would give the same result.

Both are include-type filters. "--include A --include B" will give the same result as "--include B --include A" too.

Are there existing include/exclude filters where order does not matter? For example gitattributes(5) says "When more than one pattern matches the path, a later line overrides an earlier line."

Ignoring (possible) inconsistency thing, I think they are easy to understand and use.

-- 
Piotr Krukowiecki
Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 16 in “RFC: git bisect should accept "paths-to-be-excluded"”
  1. Toralf FörsterSep 16, 2013
  2. Christian CouderSep 17, 2013
  3. Matthieu MoySep 17, 2013
  4. Christian CouderSep 17, 2013
  5. Duy NguyenSep 17, 2013
  6. Junio C HamanoSep 17, 2013
  7. Piotr KrukowieckiSep 17, 2013
  8. Junio C HamanoSep 17, 2013
  9. Piotr KrukowieckiSep 17, 2013
  10. Junio C HamanoSep 17, 2013
  11. Duy NguyenSep 18, 2013
  12. Support pathspec magic :(exclude) and its short form :-Nguyễn Thái Ngọc Duy, Nov 20, 2013
  13. Junio C HamanoNov 20, 2013
  14. Duy NguyenNov 21, 2013
  15. Junio C HamanoNov 21, 2013
  16. Toralf FörsterSep 17, 2013

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.