diff options
| author | Emily Shaffer <emilyshaffer@google.com> | 2025-10-17 17:15:44 +0300 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-17 14:32:53 -0700 |
| commit | 840b45023b1533a3ff021900b16292eaee567b99 (patch) | |
| tree | 8c3ff2bf8fb6d5b42a06e0ae89f23e2a1fbcb9d6 /t/helper/test-run-command.c | |
| parent | receive-pack: convert update hooks to new API (diff) | |
| download | git-840b45023b1533a3ff021900b16292eaee567b99.tar.gz git-840b45023b1533a3ff021900b16292eaee567b99.zip | |
receive-pack: convert receive hooks to hook API
This converts the last remaining hooks to the new hook API, for
the same benefits as the previous conversions (no need to toggle
signals, manage custom struct child_process, call find_hook(),
prepares for specifyinig hooks via configs, etc.).
I noticed a performance degradation when processing large amounts
of hook input with just 1 line per callback, due to run-command's
ppoll loop, therefore I batched 500 lines per callback, to ensure
similar pipe throughput as before and to avoid hook child waiting
on stdin.
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 't/helper/test-run-command.c')
0 files changed, 0 insertions, 0 deletions
