Junio C Hamano:
then the codepath we are changing from using diff-tree to show can
do something like:
struct git_global_state state = GIT_GLOBAL_STATE_INIT;
struct strvec args = STRVEC_INIT;
strvec_pushl(&args, ...);
cmd__show(&state, args.nr , args.v);
and expect that cmd__show() will do the _right thing_, right?
In this particular case, calling "git show" is really the last thing
we want to do; so if we can move the cleanup that happens after it
(that ends the bisect), it should be able to just take over the
current process with a call to show, without needing to re-exec.
And calling back to the libification question, I would see this part
of the bisect command to be something that would run *on top of* the
library (with possibly an API to poke bad/good states into it), so I
don't think that objection holds for this particular case.
--
\\// Peter - http://www.softwolves.pp.se/