@@ -48,6 +48,7 @@ struct show_data {
};
static int show_reference(struct repository *r, const char *refname,
+ const char *referent UNUSED,
const struct object_id *oid,
int flag UNUSED, void *cb_data)
{
@@ -1664,6 +1664,7 @@ struct do_for_each_ref_help {
static int do_for_each_ref_helper(struct repository *r UNUSED,
const char *refname,
+ const char *referent,
const struct object_id *oid,
int flags,
void *cb_data)
@@ -2565,6 +2566,7 @@ struct do_for_each_reflog_help {
static int do_for_each_reflog_helper(struct repository *r UNUSED,
const char *refname,
+ const char *referent,
const struct object_id *oid UNUSED,
int flags,
void *cb_data)
@@ -311,6 +311,7 @@ typedef int each_ref_fn(const char *refname,
*/
typedef int each_repo_ref_fn(struct repository *r,
const char *refname,
+ const char *referent,
const struct object_id *oid,
int flags,
void *cb_data);
@@ -449,7 +449,7 @@ int do_for_each_repo_ref_iterator(struct repository *r, struct ref_iterator *ite
current_ref_iter = iter;
while ((ok = ref_iterator_advance(iter)) == ITER_OK) {
- retval = fn(r, iter->refname, iter->oid, iter->flags, cb_data);
+ retval = fn(r, iter->refname, iter->referent, iter->oid, iter->flags, cb_data);
if (retval) {
/*
* If ref_iterator_abort() returns ITER_ERROR,
@@ -10,6 +10,7 @@
static int register_replace_ref(struct repository *r,
const char *refname,
+ const char *referent UNUSED,
const struct object_id *oid,
int flag UNUSED,
void *cb_data UNUSED)