Merge branch 'ps/remote-rename-fix'
"git remote rename origin upstream" failed to move origin/HEAD to upstream/HEAD when origin/HEAD is unborn and performed other renames extremely inefficiently, which has been corrected. * ps/remote-rename-fix: builtin/remote: only iterate through refs that are to be renamed builtin/remote: rework how remote refs get renamed builtin/remote: determine whether refs need renaming early on builtin/remote: fix sign comparison warnings refs: simplify logic when migrating reflog entries refs: pass refname when invoking reflog entry callback
This commit is contained in:
@@ -2155,7 +2155,7 @@ static int yield_log_record(struct reftable_ref_store *refs,
|
||||
|
||||
full_committer = fmt_ident(log->value.update.name, log->value.update.email,
|
||||
WANT_COMMITTER_IDENT, NULL, IDENT_NO_DATE);
|
||||
return fn(&old_oid, &new_oid, full_committer,
|
||||
return fn(log->refname, &old_oid, &new_oid, full_committer,
|
||||
log->value.update.time, log->value.update.tz_offset,
|
||||
log->value.update.message, cb_data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user