]> git.ipfire.org Git - thirdparty/git.git/commitdiff
lib-submodule-update: add space after function name
authorDenton Liu <liu.denton@gmail.com>
Wed, 29 Apr 2020 12:22:23 +0000 (08:22 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Apr 2020 17:36:55 +0000 (10:36 -0700)
In the shell scripts in this codebase, the usual style is to include a
space between the function name and the (). Add these missing spaces to
conform to the usual style of the code.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-submodule-update.sh

index 1dd17fc03e1203ba54bcfc45746033271172ad9c..122554acd65ebf76a431fe5e3baa8ef151714188 100755 (executable)
@@ -183,7 +183,7 @@ test_git_directory_is_unchanged () {
        )
 }
 
-test_git_directory_exists() {
+test_git_directory_exists () {
        test -e ".git/modules/$1" &&
        if test -f sub1/.git
        then
@@ -309,7 +309,7 @@ test_submodule_content () {
 
 # Internal function; use test_submodule_switch() or
 # test_submodule_forced_switch() instead.
-test_submodule_switch_common() {
+test_submodule_switch_common () {
        command="$1"
        ######################### Appearing submodule #########################
        # Switching to a commit letting a submodule appear creates empty dir ...
@@ -629,7 +629,7 @@ test_submodule_forced_switch () {
 
 # Internal function; use test_submodule_switch_recursing_with_args() or
 # test_submodule_forced_switch_recursing_with_args() instead.
-test_submodule_recursing_with_args_common() {
+test_submodule_recursing_with_args_common () {
        command="$1"
 
        ######################### Appearing submodule #########################