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

Re: [PATCH] strvec: use correct member name in comments

From
LALinus Arver <linusa@google.com>
Date
Jan 12, 2024, 18:04 UTC
Message-ID
<owlyo7dqig1w.fsf@fine.c.googlers.com>
In-Reply-To
<20240112074138.GH618729@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> The source of the problem is that the patch originally used
> "items" in the struct, too
Ah, that makes sense.
> As you note, we still call use "items" for the vector passed in to
> pushv. I think that is OK, and there is no real need to use the terse
> "v" there (it is also purely internal; the declaration in strvec.h does
> not name it at all).
Indeed. Perhaps I should have included this in my commit message.

Side note: should we start naming the parameters in strvec.h? I would think that it wouldn't hurt at this point (as the API is pretty stable). If you think that's worth it, I could reroll to include that in this series (and also improve my commit message for this patch).

Previous: Jeff KingNext: Junio C Hamano
Message 3 of 7 in “strvec: use correct member name in comments”
  1. strvec: use correct member name in commentsLinus Arver via GitGitGadget, Jan 12, 2024
  2. Jeff KingJan 12, 2024
  3. Linus ArverJan 12, 2024
  4. Junio C HamanoJan 12, 2024
  5. Linus ArverJan 13, 2024
  6. Jeff KingJan 13, 2024
  7. Linus ArverJan 14, 2024

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.