Skip to content

Commit 9faa919

Browse files
committed
status: don't use // ... in tests, use /* ... */
1 parent ca9f6b9 commit 9faa919

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/status/renames.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ void test_status_renames__case_insensitive_h2i_and_i2wc(void)
799799
};
800800

801801

802-
// Checkout the correct branch
802+
/* Checkout the correct branch */
803803
checkout_opts.checkout_strategy = GIT_CHECKOUT_FORCE;
804804
cl_git_pass(git_reference_lookup(&head, g_repo, "HEAD"));
805805
cl_git_pass(git_reference_symbolic_set_target(
@@ -809,7 +809,7 @@ void test_status_renames__case_insensitive_h2i_and_i2wc(void)
809809
cl_git_pass(git_repository_index(&index, g_repo));
810810

811811

812-
// Rename sixserving.txt, delete Wow.txt, and stage those changes
812+
/* Rename sixserving.txt, delete Wow.txt, and stage those changes */
813813
rename_file(g_repo, "sixserving.txt", "sixserving-renamed.txt");
814814
cl_git_pass(git_str_joinpath(
815815
&path_to_delete, git_repository_workdir(g_repo), "Wow.txt"));
@@ -819,13 +819,12 @@ void test_status_renames__case_insensitive_h2i_and_i2wc(void)
819819
cl_git_pass(git_index_write(index));
820820

821821

822-
// Change content of sixserving-renamed.txt
822+
/* Change content of sixserving-renamed.txt */
823823
cl_git_pass(git_str_joinpath(
824824
&path_to_edit, git_repository_workdir(g_repo), "sixserving-renamed.txt"));
825825
cl_git_append2file(path_to_edit.ptr, "New content\n");
826826

827-
828-
// Run status
827+
/* Run status */
829828
opts.flags |= GIT_STATUS_OPT_INCLUDE_UNTRACKED;
830829
opts.flags |= GIT_STATUS_OPT_RENAMES_INDEX_TO_WORKDIR;
831830
opts.flags |= GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX;

0 commit comments

Comments
 (0)