summaryrefslogtreecommitdiff
path: root/cgit.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-02-13 20:08:56 +0000
committerFreya Murphy <freya@freyacat.org>2026-02-13 20:08:56 +0000
commit3ba58a5a3cebb2631b0700925e576ace0c2154d0 (patch)
tree972bd46641403d9b45947a7f16d25d647ea761d1 /cgit.c
parentgit: update to v2.51.1 (diff)
downloadcgit-3ba58a5a3cebb2631b0700925e576ace0c2154d0.tar.gz
cgit-3ba58a5a3cebb2631b0700925e576ace0c2154d0.tar.bz2
cgit-3ba58a5a3cebb2631b0700925e576ace0c2154d0.zip
git: update to v2.53.0HEADmaster
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cgit.c b/cgit.c
index d897e26..579db64 100644
--- a/cgit.c
+++ b/cgit.c
@@ -448,16 +448,15 @@ struct refmatch {
int match;
};
-static int find_current_ref(const char *refname, const char *referent,
- const struct object_id *oid, int flags, void *cb_data)
+static int find_current_ref(const struct reference *ref, void *cb_data)
{
struct refmatch *info;
info = (struct refmatch *)cb_data;
- if (!strcmp(refname, info->req_ref))
+ if (!strcmp(ref->name, info->req_ref))
info->match = 1;
if (!info->first_ref)
- info->first_ref = xstrdup(refname);
+ info->first_ref = xstrdup(ref->name);
return info->match;
}