summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorAdrian Ratiu <adrian.ratiu@collabora.com>2026-01-28 23:39:23 +0200
committerJunio C Hamano <gitster@pobox.com>2026-01-28 15:47:03 -0800
commitb7b2157d0d23f6ed98da6fce548d614c5198713d (patch)
treef32065d5e583ebb213670f06b4e9c034e2b9b887 /contrib/persistent-https
parent9ac9612c828fc8c28afc833ca0a3511f2f406628 (diff)
downloadgit-b7b2157d0d23f6ed98da6fce548d614c5198713d.tar.gz
git-b7b2157d0d23f6ed98da6fce548d614c5198713d.zip
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>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions