Re: [PATCH v3 3/9] hook: parse the hook.jobs config
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 15, 2026, 16:13 UTC
- Message-ID
- <xmqqtsuhrryy.fsf@gitster.g>
- In-Reply-To
- <20260309133739.294555-4-adrian.ratiu@collabora.com>
Adrian Ratiu <adrian.ratiu@collabora.com> writes:
Show 19 quoted lines
> The hook.jobs config is a global way to set hook parallelization for > all hooks, in the sense that it is not per-event nor per-hook. > > Finer-grained configs will be added in later commits which can override > it, for e.g. via a per-event type job options. Next commits will also > add to this item's documentation. > > Parse hook.jobs config key in hook_config_lookup_all() and store its > value in hook_all_config_cb.jobs, then transfer it into > hook_config_cache.jobs after the config pass completes. > > This is mostly plumbing and the cached value is not yet used. > > Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com> > --- > Documentation/config/hook.adoc | 4 ++++ > hook.c | 22 ++++++++++++++++++++-- > hook.h | 1 + > 3 files changed, 25 insertions(+), 2 deletions(-)
OK. The previous step is a good preliminary step to prepare for this.