t2018: add space between function name and ()

Add a space between the function name and () which brings the style in
line with Git's coding guidelines.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Denton Liu 2020-01-06 23:52:59 -05:00 коммит произвёл Junio C Hamano
Родитель f1842ff531
Коммит 7ffb54618b
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -12,7 +12,7 @@ test_description='checkout'
# 2) HEAD is <sha>; if <sha> is not specified, the old HEAD is used. # 2) HEAD is <sha>; if <sha> is not specified, the old HEAD is used.
# #
# If <checkout options> is not specified, "git checkout" is run with -b. # If <checkout options> is not specified, "git checkout" is run with -b.
do_checkout() { do_checkout () {
exp_branch=$1 && exp_branch=$1 &&
exp_ref="refs/heads/$exp_branch" && exp_ref="refs/heads/$exp_branch" &&
@ -32,19 +32,19 @@ do_checkout() {
test $exp_sha = $(git rev-parse --verify HEAD) test $exp_sha = $(git rev-parse --verify HEAD)
} }
test_dirty_unmergeable() { test_dirty_unmergeable () {
! git diff --exit-code >/dev/null ! git diff --exit-code >/dev/null
} }
setup_dirty_unmergeable() { setup_dirty_unmergeable () {
echo >>file1 change2 echo >>file1 change2
} }
test_dirty_mergeable() { test_dirty_mergeable () {
! git diff --cached --exit-code >/dev/null ! git diff --cached --exit-code >/dev/null
} }
setup_dirty_mergeable() { setup_dirty_mergeable () {
echo >file2 file2 && echo >file2 file2 &&
git add file2 git add file2
} }