diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-04-14 14:17:12 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-04-14 14:17:12 -0700 |
commit | 4027e30c5395c9c1aeea85e99f51ac62f5148145 (patch) | |
tree | be0afd51aa31e5a0e20beafb673c72f56a422108 /refs.h | |
parent | Merge branch 'jc/relnotes-updates' (diff) | |
parent | RelNotes: revert the description on the reverted topics (diff) | |
download | tgif-4027e30c5395c9c1aeea85e99f51ac62f5148145.tar.xz |
Merge branch 'jc/revert-ref-transaction-hook-changes'
Revert the "deletion of a ref should not trigger transaction events
for loose and packed ref backends separately" that regresses the
behaviour when a ref is not modified since it was packed.
* jc/revert-ref-transaction-hook-changes:
RelNotes: revert the description on the reverted topics
Revert "fetch: increase test coverage of fetches"
Revert "Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'"
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -229,7 +229,7 @@ char *repo_default_branch_name(struct repository *r, int quiet); * struct strbuf err = STRBUF_INIT; * int ret = 0; * - * transaction = ref_store_transaction_begin(refs, 0, &err); + * transaction = ref_store_transaction_begin(refs, &err); * if (!transaction || * ref_transaction_update(...) || * ref_transaction_create(...) || @@ -567,16 +567,10 @@ enum action_on_err { }; /* - * Skip executing the reference-transaction hook. - */ -#define REF_TRANSACTION_SKIP_HOOK (1 << 0) - -/* * Begin a reference transaction. The reference transaction must * be freed by calling ref_transaction_free(). */ struct ref_transaction *ref_store_transaction_begin(struct ref_store *refs, - unsigned int flags, struct strbuf *err); struct ref_transaction *ref_transaction_begin(struct strbuf *err); |