From: Denton Liu Date: Tue, 7 Jan 2020 04:52:59 +0000 (-0500) Subject: t2018: add space between function name and () X-Git-Tag: v2.26.0-rc0~61^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ffb54618be9c44ff3213f660fca0a487893ef9a;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t2018-checkout-branch.sh b/t/t2018-checkout-branch.sh index e18abce3d2..79b16e4677 100755 --- a/t/t2018-checkout-branch.sh +++ b/t/t2018-checkout-branch.sh @@ -12,7 +12,7 @@ test_description='checkout' # 2) HEAD is ; if is not specified, the old HEAD is used. # # If is not specified, "git checkout" is run with -b. -do_checkout() { +do_checkout () { exp_branch=$1 && exp_ref="refs/heads/$exp_branch" && @@ -32,19 +32,19 @@ do_checkout() { test $exp_sha = $(git rev-parse --verify HEAD) } -test_dirty_unmergeable() { +test_dirty_unmergeable () { ! git diff --exit-code >/dev/null } -setup_dirty_unmergeable() { +setup_dirty_unmergeable () { echo >>file1 change2 } -test_dirty_mergeable() { +test_dirty_mergeable () { ! git diff --cached --exit-code >/dev/null } -setup_dirty_mergeable() { +setup_dirty_mergeable () { echo >file2 file2 && git add file2 }