bisect--helper: string output variables together with "&&"
When doing:
eval "git bisect--helper --next-vars" | {
while read line
do
echo "$line &&"
done
echo ':'
}
the result code comes from the last "echo ':'", not from running
"git bisect--helper --next-vars".
This patch gets rid of the need to string together the line from
the output of "git bisect--helper" with "&&" in the calling script
by making "git bisect--helper --next-vars" return output variables
already in that format.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
37c4c38d73
commit
e89aa6d2f5
3
bisect.c
3
bisect.c
@ -547,5 +547,6 @@ int bisect_next_vars(const char *prefix)
|
||||
revs.commits = find_bisection(revs.commits, &reaches, &all,
|
||||
!!skipped_sha1_nr);
|
||||
|
||||
return show_bisect_vars(&revs, reaches, all, BISECT_SHOW_TRIED);
|
||||
return show_bisect_vars(&revs, reaches, all,
|
||||
BISECT_SHOW_TRIED | BISECT_SHOW_STRINGED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user