summaryrefslogtreecommitdiff
path: root/t/t2018-checkout-branch.sh
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2020-01-07 04:52:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-07 20:23:32 (GMT)
commit7ffb54618be9c44ff3213f660fca0a487893ef9a (patch)
tree73ee6119bc0c77707bfc06b7feb3e5dfd9db0c26 /t/t2018-checkout-branch.sh
parentf1842ff5314a3bbd22232663a4eeadfedd10f05f (diff)
downloadgit-7ffb54618be9c44ff3213f660fca0a487893ef9a.zip
git-7ffb54618be9c44ff3213f660fca0a487893ef9a.tar.gz
git-7ffb54618be9c44ff3213f660fca0a487893ef9a.tar.bz2
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>
Diffstat (limited to 't/t2018-checkout-branch.sh')
-rwxr-xr-xt/t2018-checkout-branch.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/t2018-checkout-branch.sh b/t/t2018-checkout-branch.sh
index e18abce..79b16e4 100755
--- a/t/t2018-checkout-branch.sh
+++ b/t/t2018-checkout-branch.sh
@@ -12,7 +12,7 @@ test_description='checkout'
# 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.
-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
}