From: Junio C Hamano Date: Thu, 16 May 2024 16:48:46 +0000 (-0700) Subject: Merge branch 'ps/refs-without-the-repository' into ps/refs-without-the-repository... X-Git-Tag: v2.46.0-rc0~89^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46536278a8b77de9b8726799c998b4b82ee9a7d9;p=thirdparty%2Fgit.git Merge branch 'ps/refs-without-the-repository' into ps/refs-without-the-repository-updates * ps/refs-without-the-repository: refs: remove functions without ref store cocci: apply rules to rewrite callers of "refs" interfaces cocci: introduce rules to transform "refs" to pass ref store refs: add `exclude_patterns` parameter to `for_each_fullref_in()` refs: introduce missing functions that accept a `struct ref_store` --- 46536278a8b77de9b8726799c998b4b82ee9a7d9 diff --cc builtin/tag.c index 01b19a5b6c,424a03ad18..b18eec91ab --- a/builtin/tag.c +++ b/builtin/tag.c @@@ -673,10 -654,11 +673,11 @@@ int cmd_tag(int argc, const char **argv opt.sign = 1; path = git_pathdup("TAG_EDITMSG"); create_tag(&object, object_ref, tag, &buf, &opt, &prev, &object, - path); + &trailer_args, path); } - transaction = ref_transaction_begin(&err); + transaction = ref_store_transaction_begin(get_main_ref_store(the_repository), + &err); if (!transaction || ref_transaction_update(transaction, ref.buf, &object, &prev, create_reflog ? REF_FORCE_CREATE_REFLOG : 0,