From: Junio C Hamano Date: Thu, 16 May 2024 17:10:13 +0000 (-0700) Subject: Merge branch 'ps/refs-without-the-repository' X-Git-Tag: v2.46.0-rc0~119 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bca900904d854babf2493d57c0fee3ab421fe750;p=thirdparty%2Fgit.git Merge branch 'ps/refs-without-the-repository' The refs API lost functions that implicitly assumes to work on the primary ref_store by forcing the callers to pass a ref_store as an argument. * 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` --- bca900904d854babf2493d57c0fee3ab421fe750 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,