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

Re: [PATCH] blame: remove parameter detailed in get_commit_info()

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 28, 2025, 15:40 UTC
Message-ID
<xmqq4iuwxr12.fsf@gitster.g>
In-Reply-To
<aIcSYs7LxkJeRA-9@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 5 quoted lines
> On Mon, Jul 28, 2025 at 11:55:48AM +0800, Han Young wrote:
>> The get_commit_info() function accepts a parameter that can be used to
>> stop the commit parsing early.
>> However, none of the callers use this feature, and testing proved that
>> the performance gain of stopping parsing early is negligible.
Is it negligible but measurable, or negligible and unmeasurable?
Show 6 quoted lines
> Funny enough it doesn't seem like the `detailed` field was ever used.
> `get_commit_info()` was introduced all the way back in cee7f245dca
> (git-pickaxe: blame rewritten., 2006-10-19), and even back then all
> callers passed `1` as the `detailed` parameter.
>
> So this patch looks obviously correct to me, thanks!
I am all for simplifying.  It is great to see us lose more lines.
Thanks.
Previous: Patrick SteinhardtNext: Han Young
Message 3 of 5 in “blame: remove parameter detailed in get_commit_info()”
  1. blame: remove parameter detailed in get_commit_info()Han Young, Jul 28, 2025
  2. Patrick SteinhardtJul 28, 2025
  3. Junio C HamanoJul 28, 2025
  4. Han YoungJul 29, 2025
  5. Junio C HamanoJul 29, 2025

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.