diff options
| author | Adrian Ratiu <adrian.ratiu@collabora.com> | 2025-10-17 17:15:39 +0300 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-17 14:32:52 -0700 |
| commit | 865c7621a1a08c611b14623cc8b4797c10a4d923 (patch) | |
| tree | b0cdbd894d57ec9f29369725139e744080a70686 /t/helper/test-run-command.c | |
| parent | hook: allow overriding the ungroup option (diff) | |
| download | git-865c7621a1a08c611b14623cc8b4797c10a4d923.tar.gz git-865c7621a1a08c611b14623cc8b4797c10a4d923.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 't/helper/test-run-command.c')
0 files changed, 0 insertions, 0 deletions
