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

Re: [PATCH] commit: Add commit_list prefix to reduce_heads function.

From
Thiago Farina <tfransosi@gmail.com>
Date
Dec 5, 2010, 12:23 UTC
Message-ID
<AANLkTikxibh4QkxzokhBYQ+dMS3W6PkDaDLuqm5qN+6v@mail.gmail.com>
In-Reply-To
<7vsjycx05o.fsf@alter.siamese.dyndns.org>
On Sun, Dec 5, 2010 at 3:24 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
> Thiago Farina <tfransosi@gmail.com> writes:
>
>> Signed-off-by: Thiago Farina <tfransosi@gmail.com>
>
> I really do not like this.
>

I don't feel very strong about it. And as I learned from Jonathan, I don't care if you will take or not. I think my intention was good, but I can't please everybody

I was just trying to put commit_list in a better shape and resemble it in a more explicit API.

Show 8 quoted lines
> The use of type "struct commit_list" to hold the set of parent commits is
> incidental; if we had "struct commit_set", we would have written a
> function with the same purpose, and named it the same "reduce_HEADS".
>
> Adding commit_list to the name makes the code harder to read (and type)
> with little added benefit.  "LIST"-ness is not the important part.
>
> If a function takes a commit_list, named "reduce_HEADS",
What? reduce_HEADS ? HEADS with CAPSLOCK?
Previous: Junio C HamanoNext: Junio C Hamano
Message 12 of 13 in “commit: Add commit_list prefix to reduce_heads function.”
  1. commit: Add commit_list prefix to reduce_heads function.Thiago Farina, Dec 5, 2010
  2. Jonathan NiederDec 5, 2010
  3. Thiago FarinaDec 5, 2010
  4. Jonathan NiederDec 5, 2010
  5. Thiago FarinaDec 5, 2010
  6. Thiago FarinaDec 5, 2010
  7. Junio C HamanoDec 5, 2010
  8. Thiago FarinaDec 5, 2010
  9. Junio C HamanoDec 6, 2010
  10. Junio C HamanoDec 6, 2010
  11. Junio C HamanoDec 5, 2010
  12. Thiago FarinaDec 5, 2010
  13. Junio C HamanoDec 5, 2010

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.