зеркало из https://github.com/microsoft/git.git
t4045: reindent to make helpers readable
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
6d7c17ec9d
Коммит
f1e4fb2462
|
@ -13,9 +13,11 @@ test_expect_success 'setup' '
|
|||
'
|
||||
|
||||
check_diff () {
|
||||
dir=$1; shift
|
||||
expect=$1; shift
|
||||
cat >expected <<EOF
|
||||
dir=$1
|
||||
shift
|
||||
expect=$1
|
||||
shift
|
||||
cat >expected <<-EOF
|
||||
diff --git a/$expect b/$expect
|
||||
new file mode 100644
|
||||
index 0000000..25c05ef
|
||||
|
@ -31,9 +33,11 @@ test_expect_success "-p $*" "
|
|||
}
|
||||
|
||||
check_numstat () {
|
||||
dir=$1; shift
|
||||
expect=$1; shift
|
||||
cat >expected <<EOF
|
||||
dir=$1
|
||||
shift
|
||||
expect=$1
|
||||
shift
|
||||
cat >expected <<-EOF
|
||||
1 0 $expect
|
||||
EOF
|
||||
test_expect_success "--numstat $*" "
|
||||
|
@ -44,9 +48,11 @@ test_expect_success "--numstat $*" "
|
|||
}
|
||||
|
||||
check_stat () {
|
||||
dir=$1; shift
|
||||
expect=$1; shift
|
||||
cat >expected <<EOF
|
||||
dir=$1
|
||||
shift
|
||||
expect=$1
|
||||
shift
|
||||
cat >expected <<-EOF
|
||||
$expect | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
EOF
|
||||
|
@ -57,9 +63,11 @@ test_expect_success "--stat $*" "
|
|||
}
|
||||
|
||||
check_raw () {
|
||||
dir=$1; shift
|
||||
expect=$1; shift
|
||||
cat >expected <<EOF
|
||||
dir=$1
|
||||
shift
|
||||
expect=$1
|
||||
shift
|
||||
cat >expected <<-EOF
|
||||
:000000 100644 0000000000000000000000000000000000000000 25c05ef3639d2d270e7fe765a67668f098092bc5 A $expect
|
||||
EOF
|
||||
test_expect_success "--raw $*" "
|
||||
|
|
Загрузка…
Ссылка в новой задаче