fast-export: fix missing whitespace after switch

"Documentation/CodingGuidelines" says that there should be whitespaces around operators like 'if', 'switch', 'for', etc. Let's fix this in "builtin/fast-export.c". Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Christian Couder committed Mar 10, 2025 at 16:57 UTC 73ca6d20016973669619fe2f30aea38a0aac0f84
1 file changed +4 -4
builtin/fast-export.c
+4 -4
@@ -694,7 +694,7 @@ static void handle_commit(struct commit *commit, struct rev_info *rev,
694 if (anonymize) {
695 reencoded = anonymize_commit_message();
696 } else if (encoding) {
697 - switch(reencode_mode) {
697 + switch (reencode_mode) {
698 case REENCODE_YES:
699 reencoded = reencode_string(message, "UTF-8", encoding);
700 break;
@@ -828,7 +828,7 @@ static void handle_tag(const char *name, struct tag *tag)
828 const char *signature = strstr(message,
829 "\n-----BEGIN PGP SIGNATURE-----\n");
830 if (signature)
831 - switch(signed_tag_mode) {
831 + switch (signed_tag_mode) {
832 case SIGNED_TAG_ABORT:
833 die("encountered signed tag %s; use "
834 "--signed-tags=<mode> to handle it",
@@ -853,7 +853,7 @@ static void handle_tag(const char *name, struct tag *tag)
853 tagged = tag->tagged;
854 tagged_mark = get_object_mark(tagged);
855 if (!tagged_mark) {
856 - switch(tag_of_filtered_mode) {
856 + switch (tag_of_filtered_mode) {
857 case TAG_FILTERING_ABORT:
858 die("tag %s tags unexported object; use "
859 "--tag-of-filtered-object=<mode> to handle it",
@@ -965,7 +965,7 @@ static void get_tags_and_duplicates(struct rev_cmdline_info *info)
965 continue;
966 }
967
968 - switch(commit->object.type) {
968 + switch (commit->object.type) {
969 case OBJ_COMMIT:
970 break;
971 case OBJ_BLOB: