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
This commit is contained in:
@@ -544,6 +544,7 @@ struct branches_for_remote {
|
||||
};
|
||||
|
||||
static int add_branch_for_removal(const char *refname,
|
||||
const char *referent UNUSED,
|
||||
const struct object_id *oid UNUSED,
|
||||
int flags UNUSED, void *cb_data)
|
||||
{
|
||||
@@ -589,7 +590,7 @@ struct rename_info {
|
||||
uint32_t symrefs_nr;
|
||||
};
|
||||
|
||||
static int read_remote_branches(const char *refname,
|
||||
static int read_remote_branches(const char *refname, const char *referent UNUSED,
|
||||
const struct object_id *oid UNUSED,
|
||||
int flags UNUSED, void *cb_data)
|
||||
{
|
||||
@@ -995,6 +996,7 @@ static void free_remote_ref_states(struct ref_states *states)
|
||||
}
|
||||
|
||||
static int append_ref_to_tracked_list(const char *refname,
|
||||
const char *referent UNUSED,
|
||||
const struct object_id *oid UNUSED,
|
||||
int flags, void *cb_data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user