aboutsummaryrefslogtreecommitdiffstats
path: root/reflog.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-08-21 13:46:58 -0700
committerJunio C Hamano <gitster@pobox.com>2025-08-21 13:46:58 -0700
commit9a85fa8406d6281dfcc3caa1e3d3828a5f73a363 (patch)
treea56e9b1c13f83c3d45936cf89b9a9c499d862d66 /reflog.c
parentMerge branch 'ps/reflog-migrate-fixes' (diff)
parentbuiltin/remote: only iterate through refs that are to be renamed (diff)
downloadgit-9a85fa8406d6281dfcc3caa1e3d3828a5f73a363.tar.gz
git-9a85fa8406d6281dfcc3caa1e3d3828a5f73a363.zip
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
Diffstat (limited to 'reflog.c')
-rw-r--r--reflog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/reflog.c b/reflog.c
index b267369f13..65ef259b4f 100644
--- a/reflog.c
+++ b/reflog.c
@@ -507,7 +507,8 @@ void reflog_expiry_cleanup(void *cb_data)
free_commit_list(cb->mark_list);
}
-int count_reflog_ent(struct object_id *ooid UNUSED,
+int count_reflog_ent(const char *refname UNUSED,
+ struct object_id *ooid UNUSED,
struct object_id *noid UNUSED,
const char *email UNUSED,
timestamp_t timestamp, int tz UNUSED,