]> git.ipfire.org Git - thirdparty/git.git/commit
reference-transaction: use hook API instead of run-command
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Fri, 26 Dec 2025 12:23:29 +0000 (14:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jan 2026 21:10:29 +0000 (13:10 -0800)
commitbb98a78a5f1e35be109bbdb51c67ad6f7805c178
treeff34e1c6a675d68fb5fe2e4266178b3893933c6f
parent438ee013649bb26cf34dfdfa2557e4767fd48f03
reference-transaction: use hook API instead of run-command

Convert the reference-transaction hook to the new hook API,
so it doesn't need to set up a struct child_process, call
find_hook or toggle the pipe signals.

The stdin feed callback is processing one ref update per
call. I haven't noticed any performance degradation due
to this, however we can batch as many we want in each call,
to ensure a good pipe throughtput (i.e. the child does not
wait after stdin).

Helped-by: Emily Shaffer <nasamuffin@google.com>
Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c