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

Re: [PATCH v2 1/2] for-each-ref: re-structure code for moving to 'ref-filter'

From
Karthik Nayak <karthik.188@gmail.com>
Date
May 26, 2015, 06:58 UTC
Message-ID
<556419B3.5030902@gmail.com>
In-Reply-To
<xmqq617gbg58.fsf@gitster.dls.corp.google.com>
Show 9 quoted lines
>
> Also I think Matthieu already commented that "filter" was out of
> place for that struct.  I still think your ref_list is better called
> ref_array, but that is a minor point.  Use of "foo_list" in our
> codebase is predominantly (because we use "commit_list" very often
> in the core part of the system) for a linear linked list where you
> do not have a random access to the items.  string-list is misnomer,
> I would think.
>

ref_array also sounds good, yes! there might be confusion and might be considered a linked list rather than an array. Will change.

>
> I think you now know after seeing that 56-patch series ;-)
>
Haha, That definitely helped.
>
> If that is the case, I would suggest making that "turn it flex array"
> a separate step.
>
Sure.
-- 
Regards,
Karthik
Previous: Junio C HamanoNext: Matthieu Moy
Message 6 of 10 in “Ref-filter: unification of 'tag -l', 'branch -l' and 'for-each-ref'”
  1. Karthik NayakMay 25, 2015
  2. 1/2 for-each-ref: re-structure code for moving to 'ref-filter'Karthik Nayak, May 25, 2015
  3. Junio C HamanoMay 25, 2015
  4. Karthik NayakMay 25, 2015
  5. Junio C HamanoMay 25, 2015
  6. Karthik NayakMay 26, 2015
  7. Matthieu MoyMay 26, 2015
  8. Karthik NayakMay 28, 2015
  9. Matthieu MoyMay 28, 2015
  10. 2/2 ref-filter: move code from 'for-each-ref'Karthik Nayak, May 25, 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.