Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'
commit991b4d47f0accd3955d05927d5ce434e03ffbdb6
authorJunio C Hamano <gitster@pobox.com>
Fri, 18 Feb 2022 21:53:27 +0000 (18 13:53 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Feb 2022 21:53:27 +0000 (18 13:53 -0800)
treeb60f5608c4a0f3a04014e57a9fbd024dadf35ef3
parentbcd020f88e1e22f38422ac3f73ab06b34ec4bef1
parent2ed1b64ebdeefc7f9473ae159fb45ff0c6cf121a
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
refs.c
refs.h
refs/files-backend.c
refs/packed-backend.c
refs/packed-backend.h
refs/refs-internal.h
sequencer.c