summaryrefslogtreecommitdiff
path: root/t/t5310-pack-bitmaps.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-05-09 02:59:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-05-09 03:09:03 (GMT)
commitda5a1f81008f89f4e533006df8fa536e43c9c677 (patch)
treeab1138031e1b337ef5e428c1fc8b766d6a700787 /t/t5310-pack-bitmaps.sh
parent9df4a6074a98740b70b980d43dca5203db0ff688 (diff)
downloadgit-da5a1f81008f89f4e533006df8fa536e43c9c677.zip
git-da5a1f81008f89f4e533006df8fa536e43c9c677.tar.gz
git-da5a1f81008f89f4e533006df8fa536e43c9c677.tar.bz2
t5310: fix "; do" style
Our usual shell style is to put the "do" of a loop on its own line, like: while $cond do something done instead of: while $cond; do something done We have a bit of both in our code base, but the former is what's in CodingGuidelines (and outnumbers the latter in t/ by about 6:1). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5310-pack-bitmaps.sh')
-rwxr-xr-xt/t5310-pack-bitmaps.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/t/t5310-pack-bitmaps.sh b/t/t5310-pack-bitmaps.sh
index c3ddfa2..20e2473 100755
--- a/t/t5310-pack-bitmaps.sh
+++ b/t/t5310-pack-bitmaps.sh
@@ -20,11 +20,13 @@ has_any () {
}
test_expect_success 'setup repo with moderate-sized history' '
- for i in $(test_seq 1 10); do
+ for i in $(test_seq 1 10)
+ do
test_commit $i
done &&
git checkout -b other HEAD~5 &&
- for i in $(test_seq 1 10); do
+ for i in $(test_seq 1 10)
+ do
test_commit side-$i
done &&
git checkout master &&
@@ -104,7 +106,8 @@ test_expect_success 'clone from bitmapped repository' '
'
test_expect_success 'setup further non-bitmapped commits' '
- for i in $(test_seq 1 10); do
+ for i in $(test_seq 1 10)
+ do
test_commit further-$i
done
'
@@ -300,7 +303,8 @@ test_expect_success 'set up reusable pack' '
test_expect_success 'pack reuse respects --honor-pack-keep' '
test_when_finished "rm -f .git/objects/pack/*.keep" &&
- for i in .git/objects/pack/*.pack; do
+ for i in .git/objects/pack/*.pack
+ do
>${i%.pack}.keep
done &&
reusable_pack --honor-pack-keep >empty.pack &&