diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-08-15 22:22:15 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-15 22:22:15 +0200 |
commit | e7f86cb69de9c3b95c8c8816b51621c1d7910e02 (patch) | |
tree | 5be466f67f045f9c1ab56411e7977ac5e66a4fe7 /t | |
parent | Merge branch 'ps/submodule-ref-format' (diff) | |
parent | ref-filter: populate symref from iterator (diff) | |
download | git-e7f86cb69de9c3b95c8c8816b51621c1d7910e02.tar.xz git-e7f86cb69de9c3b95c8c8816b51621c1d7910e02.zip |
Merge branch 'jc/refs-symref-referent'
The refs API has been taught to give symref target information to
the users of ref iterators, allowing for-each-ref and friends to
avoid an extra ref_resolve_* API call per a symbolic ref.
* jc/refs-symref-referent:
ref-filter: populate symref from iterator
refs: add referent to each_ref_fn
refs: keep track of unresolved reference value in iterators
Diffstat (limited to 't')
-rw-r--r-- | t/helper/test-ref-store.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c index 637b8b294e..65346dee55 100644 --- a/t/helper/test-ref-store.c +++ b/t/helper/test-ref-store.c @@ -156,7 +156,7 @@ static int cmd_rename_ref(struct ref_store *refs, const char **argv) return refs_rename_ref(refs, oldref, newref, logmsg); } -static int each_ref(const char *refname, const struct object_id *oid, +static int each_ref(const char *refname, const char *referent UNUSED, const struct object_id *oid, int flags, void *cb_data UNUSED) { printf("%s %s 0x%x\n", oid_to_hex(oid), refname, flags); |