Skip to content

Commit 73ca6d2

Browse files
chriscoolgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d007dc2 commit 73ca6d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builtin/fast-export.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ static void handle_commit(struct commit *commit, struct rev_info *rev,
694694
if (anonymize) {
695695
reencoded = anonymize_commit_message();
696696
} else if (encoding) {
697-
switch(reencode_mode) {
697+
switch (reencode_mode) {
698698
case REENCODE_YES:
699699
reencoded = reencode_string(message, "UTF-8", encoding);
700700
break;
@@ -828,7 +828,7 @@ static void handle_tag(const char *name, struct tag *tag)
828828
const char *signature = strstr(message,
829829
"\n-----BEGIN PGP SIGNATURE-----\n");
830830
if (signature)
831-
switch(signed_tag_mode) {
831+
switch (signed_tag_mode) {
832832
case SIGNED_TAG_ABORT:
833833
die("encountered signed tag %s; use "
834834
"--signed-tags=<mode> to handle it",
@@ -853,7 +853,7 @@ static void handle_tag(const char *name, struct tag *tag)
853853
tagged = tag->tagged;
854854
tagged_mark = get_object_mark(tagged);
855855
if (!tagged_mark) {
856-
switch(tag_of_filtered_mode) {
856+
switch (tag_of_filtered_mode) {
857857
case TAG_FILTERING_ABORT:
858858
die("tag %s tags unexported object; use "
859859
"--tag-of-filtered-object=<mode> to handle it",
@@ -965,7 +965,7 @@ static void get_tags_and_duplicates(struct rev_cmdline_info *info)
965965
continue;
966966
}
967967

968-
switch(commit->object.type) {
968+
switch (commit->object.type) {
969969
case OBJ_COMMIT:
970970
break;
971971
case OBJ_BLOB:

0 commit comments

Comments
 (0)