]> git.ipfire.org Git - thirdparty/git.git/commit
fsck: rename "skiplist" to "skip_oids"
authorshejialuo <shejialuo@gmail.com>
Thu, 8 Aug 2024 11:24:13 +0000 (19:24 +0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Aug 2024 16:36:52 +0000 (09:36 -0700)
commit2d79aa9095577bdc2049cfa938d18d3ebed5349f
treea36790006c153c3a3f56bab42a731ea634ec7998
parent39bf06adf96da25b87c9aa7d35a32ef3683eb4a4
fsck: rename "skiplist" to "skip_oids"

The "skiplist" field in "fsck_options" is related to objects. Because we
are going to introduce ref consistency check, the "skiplist" name is too
general which will make the caller think "skiplist" is related to both
the refs and objects.

It may seem that for both refs and objects, we should provide a general
"skiplist" here. However, the type for "skiplist" is `struct oidset`
which is totally unsuitable for refs.

To avoid above ambiguity, rename "skiplist" to "skip_oids".

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: shejialuo <shejialuo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fsck.c
fsck.h