Re: [PATCH v3 02/10] hook: provide stdin via callback
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 29, 2025, 22:21 UTC
- Message-ID
- <xmqqldjofpjh.fsf@gitster.g>
- In-Reply-To
- <87iketf0sn.fsf@gentoo.mail-host-address-is-not-set>
Adrian Ratiu <adrian.ratiu@collabora.com> writes:
Show 22 quoted lines
> On Mon, 24 Nov 2025, Adrian Ratiu <adrian.ratiu@collabora.com> > wrote: >> From: Emily Shaffer <emilyshaffer@google.com> >> >> This adds a callback mechanism for feeding stdin to hooks >> ... >> this data. + * Only useful when using >> `run_hooks_opt.feed_pipe`, otherwise ignore it. + */ + >> void *feed_pipe_ctx; + + /** + * Opaque data pointer >> used to keep internal state across callback calls. + * + * >> It can be accessed via the second callback arg: + * >> ((struct hook_cb_data *) >> pp_cb)->hook_cb->options->feed_pipe_cb_data; > > I just noticed the small inconsistency in this comment (second cb > arg vs the actual code example). Will fix in v4. > > I also have an idea how to further simplify this API based on the > parallel hook execution work I'm doing (that is a separate patch > series built upon this one), so I'll see if I can make this > simpler, to avoid going through hook_cb->options entirely, similar > to what Patrick suggested in v2.
Not about the contents of your message, but I often see in your replies unintelligible randomly line-wrapped text, and this message was an example of such. You can see how it appears to others by visiting
https://lore.kernel.org/git/87iketf0sn.fsf@gentoo.mail-host-address-is-not-set/
I _think_ it has to do with your e-mail client, and possibly use of the flowed format in
Content-Type: text/plain; charset=utf-8; format=flowed
Please make sure your e-mail client is set up correctly.
Thanks.