X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=t%2Ft6002-rev-list-bisect.sh;h=d0a4ff29c97ffde5f994971e80a8e094d8a8ccd0;hb=d9a23fa6f7124befe7803f5f3a8c53999578caa4;hp=a5e313b2f9812a75223df2b54af14383829e3e9a;hpb=28346d2d3c6e609a618c6c429d865e9d5d50b998;p=git.git diff --git a/t/t6002-rev-list-bisect.sh b/t/t6002-rev-list-bisect.sh index a5e313b2..d0a4ff29 100755 --- a/t/t6002-rev-list-bisect.sh +++ b/t/t6002-rev-list-bisect.sh @@ -5,14 +5,18 @@ test_description='Tests git-rev-list --bisect functionality' . ./test-lib.sh -. ../t6000-lib.sh +. ../t6000lib.sh # t6xxx specific functions 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