summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-01-06 07:42:01 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-01-06 07:42:01 -0500
commit9faa9199026258b084ecd292d9b93ac56b81ee94 (patch)
tree2deb688b19ace5a96955287eefdc6a902a85d137
parentca9f6b987300dd4dd204ce22491ff85ab34b51a7 (diff)
downloadlibgit2-9faa9199026258b084ecd292d9b93ac56b81ee94.tar.gz
status: don't use `// ...` in tests, use `/* ... */`
-rw-r--r--tests/status/renames.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/status/renames.c b/tests/status/renames.c
index 2e61c3865..d5cf87d07 100644
--- a/tests/status/renames.c
+++ b/tests/status/renames.c
@@ -799,7 +799,7 @@ void test_status_renames__case_insensitive_h2i_and_i2wc(void)
};
- // Checkout the correct branch
+ /* Checkout the correct branch */
checkout_opts.checkout_strategy = GIT_CHECKOUT_FORCE;
cl_git_pass(git_reference_lookup(&head, g_repo, "HEAD"));
cl_git_pass(git_reference_symbolic_set_target(
@@ -809,7 +809,7 @@ void test_status_renames__case_insensitive_h2i_and_i2wc(void)
cl_git_pass(git_repository_index(&index, g_repo));
- // Rename sixserving.txt, delete Wow.txt, and stage those changes
+ /* Rename sixserving.txt, delete Wow.txt, and stage those changes */
rename_file(g_repo, "sixserving.txt", "sixserving-renamed.txt");
cl_git_pass(git_str_joinpath(
&path_to_delete, git_repository_workdir(g_repo), "Wow.txt"));
@@ -819,13 +819,12 @@ void test_status_renames__case_insensitive_h2i_and_i2wc(void)
cl_git_pass(git_index_write(index));
- // Change content of sixserving-renamed.txt
+ /* Change content of sixserving-renamed.txt */
cl_git_pass(git_str_joinpath(
&path_to_edit, git_repository_workdir(g_repo), "sixserving-renamed.txt"));
cl_git_append2file(path_to_edit.ptr, "New content\n");
-
- // Run status
+ /* Run status */
opts.flags |= GIT_STATUS_OPT_INCLUDE_UNTRACKED;
opts.flags |= GIT_STATUS_OPT_RENAMES_INDEX_TO_WORKDIR;
opts.flags |= GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX;