X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=t%2Ft6002-rev-list-bisect.sh;h=d0a4ff29c97ffde5f994971e80a8e094d8a8ccd0;hb=f1f0d0889e5557bc467490fdbd53f7b912503a33;hp=6a71820825d2b2649087cbfc851f451a11c429bc;hpb=776566000ffed2ffed5783f2227bb36859c85005;p=git.git diff --git a/t/t6002-rev-list-bisect.sh b/t/t6002-rev-list-bisect.sh index 6a718208..d0a4ff29 100755 --- a/t/t6002-rev-list-bisect.sh +++ b/t/t6002-rev-list-bisect.sh @@ -11,8 +11,12 @@ bc_expr() { bc <=0) { return x; } else { return -x; } } -define floor(x) { save=scale; scale=0; result=x/1; scale=save; return result; } +define abs(x) { + if (x>=0) { return (x); } else { return (-x); } +} +define floor(x) { + save=scale; scale=0; result=x/1; scale=save; return (result); +} $* EOF } @@ -36,7 +40,7 @@ test_bisection_diff() } date >path0 -git-update-cache --add path0 +git-update-index --add path0 save_tag tree git-write-tree on_committer_date "1971-08-16 00:00:00" hide_error save_tag root unique_commit root tree on_committer_date "1971-08-16 00:00:01" save_tag l0 unique_commit l0 tree -p root