diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-11-04 07:31:26 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-04 07:31:26 -0800 |
| commit | 8c6e6b27379b98269620f5f20397425ba358a1bb (patch) | |
| tree | f5c35ea7c977e5ee3df8a3cbfb4b29a732d66e1a /notes.c | |
| parent | Revert "Merge branch 'kn/refs-optim-cleanup' into next" (diff) | |
| download | git-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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; } |
