diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-02-18 13:53:27 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-18 13:53:27 -0800 |
commit | 991b4d47f0accd3955d05927d5ce434e03ffbdb6 (patch) | |
tree | b60f5608c4a0f3a04014e57a9fbd024dadf35ef3 /refs/refs-internal.h | |
parent | Merge branch 'pw/use-in-process-checkout-in-rebase' (diff) | |
parent | refs: skip hooks when deleting uncovered packed refs (diff) | |
download | tgif-991b4d47f0accd3955d05927d5ce434e03ffbdb6.tar.xz |
Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'
Because a deletion of ref would need to remove it from both the
loose ref store and the packed ref store, a delete-ref operation
that logically removes one ref may end up invoking ref-transaction
hook twice, which has been corrected.
* ps/avoid-unnecessary-hook-invocation-with-packed-refs:
refs: skip hooks when deleting uncovered packed refs
refs: do not execute reference-transaction hook on packing refs
refs: demonstrate excessive execution of the reference-transaction hook
refs: allow skipping the reference-transaction hook
refs: allow passing flags when beginning transactions
refs: extract packed_refs_delete_refs() to allow control of transaction
Diffstat (limited to 'refs/refs-internal.h')
-rw-r--r-- | refs/refs-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h index 7ff6fba4f0..6e15db3ca4 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -213,6 +213,7 @@ struct ref_transaction { size_t nr; enum ref_transaction_state state; void *backend_data; + unsigned int flags; }; /* |