Patrick Steinhardt <ps@xxxxxx> writes: > Sure, I can rebase this on top of v2.50.1. It would then of course > require some smallish fixes when merged to `seen`. The below patch is > what is required to make it work with the v2.50 track. > > Patrick Thanks. > diff --git a/builtin/reflog.c b/builtin/reflog.c > index bc7e7f5e442..d3f0009cb0e 100644 > --- a/builtin/reflog.c > +++ b/builtin/reflog.c > @@ -4,7 +4,7 @@ > #include "config.h" > #include "gettext.h" > #include "hex.h" > -#include "odb.h" > +#include "object-store.h" > #include "revision.h" > #include "reachable.h" > #include "wildmatch.h" > @@ -426,13 +426,13 @@ static int cmd_reflog_write(int argc, const char **argv, const char *prefix, > ret = get_oid_hex_algop(argv[1], &old_oid, repo->hash_algo); > if (ret) > die(_("invalid old object ID: '%s'"), argv[1]); > - if (!is_null_oid(&old_oid) && !odb_has_object(repo->objects, &old_oid, 0)) > + if (!is_null_oid(&old_oid) && !has_object(the_repository, &old_oid, 0)) > die(_("old object '%s' does not exist"), argv[1]); > > ret = get_oid_hex_algop(argv[2], &new_oid, repo->hash_algo); > if (ret) > die(_("invalid new object ID: '%s'"), argv[2]); > - if (!is_null_oid(&new_oid) && !odb_has_object(repo->objects, &new_oid, 0)) > + if (!is_null_oid(&new_oid) && !has_object(the_repository, &new_oid, 0)) > die(_("new object '%s' does not exist"), argv[2]); > > message = argv[3];