author | Christian Couder <chriscool@tuxfamily.org> | |
Mon, 30 Mar 2009 04:59:59 +0000 (06:59 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 5 Apr 2009 08:29:45 +0000 (01:29 -0700) | ||
commit | e89aa6d2f546b2d4f2d88c15ce7e343751d6922f | |
tree | f387a8765ef8469baf6e047ca856bd428d20ff4f | tree | snapshot |
parent | 37c4c38d7356bf256d0297fdbac78ef8b6807fac | commit | diff |
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>
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>
bisect.c | diff | blob | history | |
bisect.h | diff | blob | history | |
builtin-rev-list.c | diff | blob | history | |
git-bisect.sh | diff | blob | history |