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>
Denton Liu committed
Jan 6, 2020 at 23:52 UTC
7ffb54618be9c44ff3213f660fca0a487893ef9a
1 file changed
+5
-5
t/t2018-checkout-branch.sh
+5
-5
@@ -12,7 +12,7 @@ test_description='checkout'
12
# 2) HEAD is <sha>; if <sha> is not specified, the old HEAD is used.
13
#
14
# If <checkout options> is not specified, "git checkout" is run with -b.
15
-do_checkout() {
15
+do_checkout () {
16
exp_branch=$1 &&
17
exp_ref="refs/heads/$exp_branch" &&
18
@@ -32,19 +32,19 @@ do_checkout() {
32
test $exp_sha = $(git rev-parse --verify HEAD)
33
}
34
35
-test_dirty_unmergeable() {
35
+test_dirty_unmergeable () {
36
! git diff --exit-code >/dev/null
37
}
38
39
-setup_dirty_unmergeable() {
39
+setup_dirty_unmergeable () {
40
echo >>file1 change2
41
}
42
43
-test_dirty_mergeable() {
43
+test_dirty_mergeable () {
44
! git diff --cached --exit-code >/dev/null
45
}
46
47
-setup_dirty_mergeable() {
47
+setup_dirty_mergeable () {
48
echo >file2 file2 &&
49
git add file2
50
}