public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
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: Thu, 15 Jan 2026 05:32:06 -0800	[thread overview]
Message-ID: <xmqqa4yfdmsp.fsf@gitster.g> (raw)
In-Reply-To: <20260115-pks-commit-list-coding-guidelines-v1-0-c58868dbf412@pks.im> (Patrick Steinhardt's message of "Thu, 15 Jan 2026 10:35:31 +0100")

Patrick Steinhardt <ps@pks.im> writes:

> I've been working with commit lists quite often recently, and every
> single time I get bitten by the fact that a subset of its functions do
> not conform to our coding guidelines. While most of the functions start
> with `commit_list_*()`, three functions don't. This patch series fixes
> this issue and renames the remaining three functions so that all of them
> start with `commit_list_*()`.

> Note that I'm adding compatibility wrappers for the old prototypes to
> ease the transition and not make life hard for any in-flight patch
> series. I've also dropped all changes that lead to conflicts with
> "seen".

Well, these are quite well established names, and seems to have
different callers between maint and master, which means that your
compatibility wrappers will need to stay there for some time because
these three patches will not apply to maint, leaving them in maint
under original names, and future fixes that involve maint, when
merged up to master and above, will still need these compatibility
wrappers.

Perhaps the new naming rules were introduced without surveying how
established names that follow different rules are and how often
they acquire more calling sites?  Should we instead tone down the
rules so that it says something like "when you are introducing new
type S, then call functions around it this way using S_ prefix",
leaving established names excempt (which is quite different from
letting sleeping dogs lie---as long as they acquire new callers and
the code that uses them change, they are not sleeping)?


  parent reply	other threads:[~2026-01-15 13:32 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 ` Junio C Hamano [this message]
2026-01-16  6:54   ` [PATCH 0/3] Rename commit list functions " Patrick Steinhardt
2026-01-16 16:48     ` Junio C Hamano

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=xmqqa4yfdmsp.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