Bisect: fix some white spaces and empty lines breakages.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Christian Couder committed
Oct 22, 2007 at 07:48 UTC
8fe26f4481f274a6c752a6c13ac5da0460dbd1b6
1 file changed
+8
-9
git-bisect.sh
+8
-9
@@ -64,7 +64,7 @@ bisect_start() {
64
branch=`cat "$GIT_DIR/head-name"`
65
else
66
branch=master
67
- fi
67
+ fi
68
git checkout $branch || exit
69
;;
70
refs/heads/*)
@@ -95,11 +95,11 @@ bisect_start() {
95
arg="$1"
96
case "$arg" in
97
--)
98
- shift
98
+ shift
99
break
100
;;
101
*)
102
- rev=$(git rev-parse --verify "$arg^{commit}" 2>/dev/null) || {
102
+ rev=$(git rev-parse --verify "$arg^{commit}" 2>/dev/null) || {
103
test $has_double_dash -eq 1 &&
104
die "'$arg' does not appear to be a valid revision"
105
break
@@ -110,10 +110,10 @@ bisect_start() {
110
else
111
bisect_write_good "$rev"
112
fi
113
- shift
113
+ shift
114
;;
115
esac
116
- done
116
+ done
117
118
sq "$@" >"$GIT_DIR/BISECT_NAMES"
119
echo "git-bisect start$orig_args" >>"$GIT_DIR/BISECT_LOG"
@@ -143,7 +143,7 @@ bisect_write_bad() {
143
144
bisect_good() {
145
bisect_autostart
146
- case "$#" in
146
+ case "$#" in
147
0) revs=$(git rev-parse --verify HEAD) || exit ;;
148
*) revs=$(git rev-parse --revs-only --no-flags "$@") &&
149
test '' != "$revs" || die "Bad rev input: $@" ;;
@@ -153,7 +153,6 @@ bisect_good() {
153
rev=$(git rev-parse --verify "$rev^{commit}") || exit
154
bisect_write_good "$rev"
155
echo "git-bisect good $rev" >>"$GIT_DIR/BISECT_LOG"
156
-
156
done
157
bisect_auto_next
158
}
@@ -207,7 +206,7 @@ bisect_auto_next() {
206
}
207
208
bisect_next() {
210
- case "$#" in 0) ;; *) usage ;; esac
209
+ case "$#" in 0) ;; *) usage ;; esac
210
bisect_autostart
211
bisect_next_check good
212
@@ -255,7 +254,7 @@ bisect_reset() {
254
exit 1
255
}
256
branch="$1" ;;
258
- *)
257
+ *)
258
usage ;;
259
esac
260
if git checkout "$branch"; then