aboutsummaryrefslogtreecommitdiffstats
path: root/notes.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-11-04 07:31:26 -0800
committerJunio C Hamano <gitster@pobox.com>2025-11-04 07:31:26 -0800
commit8c6e6b27379b98269620f5f20397425ba358a1bb (patch)
treef5c35ea7c977e5ee3df8a3cbfb4b29a732d66e1a /notes.c
parentRevert "Merge branch 'kn/refs-optim-cleanup' into next" (diff)
downloadgit-8c6e6b27379b98269620f5f20397425ba358a1bb.tar.gz
git-8c6e6b27379b98269620f5f20397425ba358a1bb.zip
Revert "Merge branch 'ps/ref-peeled-tags' into next"
This reverts commit 8ac48a10de61267858d66383c34833e55a5e9d02, reversing changes made to 9ab444edfb825dfbc555b3d7916df03071db94c3.
Diffstat (limited to 'notes.c')
-rw-r--r--notes.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/notes.c b/notes.c
index 8e00fd8c47..9a2e9181fe 100644
--- a/notes.c
+++ b/notes.c
@@ -938,11 +938,13 @@ out:
return ret;
}
-static int string_list_add_one_ref(const struct reference *ref, void *cb)
+static int string_list_add_one_ref(const char *refname, const char *referent UNUSED,
+ const struct object_id *oid UNUSED,
+ int flag UNUSED, void *cb)
{
struct string_list *refs = cb;
- if (!unsorted_string_list_has_string(refs, ref->name))
- string_list_append(refs, ref->name);
+ if (!unsorted_string_list_has_string(refs, refname))
+ string_list_append(refs, refname);
return 0;
}