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

Re: [PATCH v11 06/13] ref-filter: add option to filter out tags, branches and remotes

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Aug 17, 2015, 05:14 UTC
Message-ID
<CAPig+cQjtFHZgUvCVxTcXRCPykFN=RG5=bvkqF04h1MupPJV5g@mail.gmail.com>
In-Reply-To
<CAPig+cTZvSW8ZRLFLhmQTYBwotVjMWANZy0OAZHpA79vW8GfGQ@mail.gmail.com>
On Mon, Aug 17, 2015 at 12:42 AM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 15 quoted lines
> On Sat, Aug 15, 2015 at 2:00 PM, Karthik Nayak <karthik.188@gmail.com> wrote:
>> -       if (type & (FILTER_REFS_ALL | FILTER_REFS_INCLUDE_BROKEN))
>> -               ret = for_each_rawref(ref_filter_handler, &ref_cbdata);
>> -       else if (type & FILTER_REFS_ALL)
>> -               ret = for_each_ref(ref_filter_handler, &ref_cbdata);
>> -       else if (type)
>> +       if (type & FILTER_REFS_INCLUDE_BROKEN) {
>> +               type -= FILTER_REFS_INCLUDE_BROKEN;
>
> The above is a somewhat unusual way to say the more idiomatic:
>
>     type &= ~FILTER_REFS_INCLUDE_BROKEN;
>
> when dealing with bit flags. Is there precedence elsewhere in the
> project for choosing '-' over '~'?
s/precedence/precedent/
Previous: Eric SunshineNext: Karthik Nayak
Message 3 of 4 in “ref-filter: add option to filter out tags, branches and remotes”
  1. 06/13 ref-filter: add option to filter out tags, branches and remotesKarthik Nayak, Aug 15, 2015
  2. Eric SunshineAug 17, 2015
  3. Eric SunshineAug 17, 2015
  4. Karthik NayakAug 17, 2015

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.