From: Junio C Hamano <gitster@pobox.com>
To: Patrick Steinhardt <ps@pks.im>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 0/3] Rename commit list functions to conform to coding guidelines
Date: Fri, 16 Jan 2026 08:48:22 -0800 [thread overview]
Message-ID: <xmqqikd1a4h5.fsf@gitster.g> (raw)
In-Reply-To: <aWngu0AZx5Akd_m0@pks.im> (Patrick Steinhardt's message of "Fri, 16 Jan 2026 07:54:51 +0100")
Patrick Steinhardt <ps@pks.im> writes:
> I dunno. I myself prefer converging towards a consistent coding style,
> and part of that is to also adapt existing callers over time. One should
> for sure be careful in this context and not go on a holy crusade against
> all violations of our coding guidelines, but I still think there's a
> point to be made that a slow trickle of changes of sleeping code is
> fine.
I do not think there is any disagreement here.
> If it's considered to be too invasive that's fine, then I'll drop it. I
> think there's value though (well, obviously, otherwise I wouldn't have
> sent the series :) ).
Sure, if there were not other activities in the codebase, we can aim
for perfection, but unfortunately we do not live in such an
idealized world. Among the three patches, the first two that
weighed only around 100 lines in fewer than 10 hunks are not bad at
all, but the other one was a bit too much.
The linked list of commits is handy but not particularly performant
data structure; instead of renaming component functions in the API,
rewriting its users to use a better data structure might be a more
productive way to achieve the same goal. There was a topic that
gained quite a nice performance boost by rewriting code based on
commit_list to use prio_queue, for example, in the recent past.
prev parent reply other threads:[~2026-01-16 16:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-15 9:35 [PATCH 0/3] Rename commit list functions to conform to coding guidelines Patrick Steinhardt
2026-01-15 9:35 ` [PATCH 1/3] commit: rename `copy_commit_list()` " Patrick Steinhardt
2026-01-15 9:35 ` [PATCH 2/3] commit: rename `reverse_commit_list()` " Patrick Steinhardt
2026-01-15 9:35 ` [PATCH 3/3] commit: rename `free_commit_list()` " Patrick Steinhardt
2026-01-15 13:32 ` [PATCH 0/3] Rename commit list functions " Junio C Hamano
2026-01-16 6:54 ` Patrick Steinhardt
2026-01-16 16:48 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqikd1a4h5.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=ps@pks.im \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox