git/refs
Patrick Steinhardt ffad994138 refs: do not execute reference-transaction hook on packing refs
The reference-transaction hook is supposed to track logical changes to
references, but it currently also gets executed when packing refs in a
repository. This is unexpected and ultimately not all that useful:
packing refs is not supposed to result in any user-visible change to the
refs' state, and it ultimately is an implementation detail of how refs
stores work.

Fix this excessive execution of the hook when packing refs.

Reported-by: Waleed Khan <me@waleedkhan.name>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-01-17 11:01:45 -08:00
..
debug.c Merge branch 'hn/reflog-tests' 2021-12-15 09:39:49 -08:00
files-backend.c refs: do not execute reference-transaction hook on packing refs 2022-01-17 11:01:45 -08:00
iterator.c use CALLOC_ARRAY 2021-03-13 16:00:09 -08:00
packed-backend.c refs: allow passing flags when beginning transactions 2022-01-17 11:01:44 -08:00
packed-backend.h refs: extract packed_refs_delete_refs() to allow control of transaction 2022-01-17 11:01:44 -08:00
ref-cache.c Merge branch 'jt/no-abuse-alternate-odb-for-submodules' 2021-10-25 16:06:56 -07:00
ref-cache.h Merge branch 'jt/no-abuse-alternate-odb-for-submodules' 2021-10-25 16:06:56 -07:00
refs-internal.h refs: allow passing flags when beginning transactions 2022-01-17 11:01:44 -08:00