Junio C Hamano [off-list ref] wrote:
Well, I did not like start_command() that wanted to always
perform the full exec of something else for its inflexibility,
and this piles a specific hack on top of it... Why not a
callback with void * pointer?
Well, that's because its always used to execute some external
program. And some operating system designers once upon a time
thought that was the only way anyone would ever need to start a
new parallel thread of execution. ;-)
But why do you want a callback here in start_command() given
that all you are doing is running a filter command anyway?
Is that so you could start a "thread" to handle the stdin
pipe?
--
Shawn.