Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
9faa9199
Commit
9faa9199
authored
Jan 06, 2022
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
status: don't use `// ...` in tests, use `/* ... */`
parent
ca9f6b98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
tests/status/renames.c
+4
-5
No files found.
tests/status/renames.c
View file @
9faa9199
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment