t4045: reindent to make helpers readable

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano 2017-12-09 21:40:13 +01:00
parent 6d7c17ec9d
commit f1e4fb2462

View File

@ -13,9 +13,11 @@ test_expect_success 'setup' '
' '
check_diff () { check_diff () {
dir=$1; shift dir=$1
expect=$1; shift shift
cat >expected <<EOF expect=$1
shift
cat >expected <<-EOF
diff --git a/$expect b/$expect diff --git a/$expect b/$expect
new file mode 100644 new file mode 100644
index 0000000..25c05ef index 0000000..25c05ef
@ -31,9 +33,11 @@ test_expect_success "-p $*" "
} }
check_numstat () { check_numstat () {
dir=$1; shift dir=$1
expect=$1; shift shift
cat >expected <<EOF expect=$1
shift
cat >expected <<-EOF
1 0 $expect 1 0 $expect
EOF EOF
test_expect_success "--numstat $*" " test_expect_success "--numstat $*" "
@ -44,9 +48,11 @@ test_expect_success "--numstat $*" "
} }
check_stat () { check_stat () {
dir=$1; shift dir=$1
expect=$1; shift shift
cat >expected <<EOF expect=$1
shift
cat >expected <<-EOF
$expect | 1 + $expect | 1 +
1 file changed, 1 insertion(+) 1 file changed, 1 insertion(+)
EOF EOF
@ -57,9 +63,11 @@ test_expect_success "--stat $*" "
} }
check_raw () { check_raw () {
dir=$1; shift dir=$1
expect=$1; shift shift
cat >expected <<EOF expect=$1
shift
cat >expected <<-EOF
:000000 100644 0000000000000000000000000000000000000000 25c05ef3639d2d270e7fe765a67668f098092bc5 A $expect :000000 100644 0000000000000000000000000000000000000000 25c05ef3639d2d270e7fe765a67668f098092bc5 A $expect
EOF EOF
test_expect_success "--raw $*" " test_expect_success "--raw $*" "