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
a7ffd936
Commit
a7ffd936
authored
Jan 04, 2013
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clar: fix merge/setup.c
parent
d0ae8b98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
21 deletions
+1
-21
tests-clar/merge/setup.c
+1
-21
No files found.
tests-clar/merge/setup.c
View file @
a7ffd936
...
...
@@ -44,22 +44,6 @@ void test_merge_setup__cleanup(void)
cl_git_sandbox_cleanup
();
}
static
bool
test_file_contents
(
const
char
*
filename
,
const
char
*
expected
)
{
git_buf
file_path_buf
=
GIT_BUF_INIT
,
file_buf
=
GIT_BUF_INIT
;
bool
equals
;
git_buf_printf
(
&
file_path_buf
,
"%s/%s"
,
git_repository_path
(
repo
),
filename
);
cl_git_pass
(
git_futils_readbuffer
(
&
file_buf
,
file_path_buf
.
ptr
));
equals
=
(
strcmp
(
file_buf
.
ptr
,
expected
)
==
0
);
git_buf_free
(
&
file_path_buf
);
git_buf_free
(
&
file_buf
);
return
equals
;
}
static
void
write_file_contents
(
const
char
*
filename
,
const
char
*
output
)
{
git_buf
file_path_buf
=
GIT_BUF_INIT
;
...
...
@@ -77,18 +61,14 @@ struct merge_head_cb_data {
unsigned
int
i
;
};
int
merge_head_foreach_cb
(
git_oid
*
oid
,
void
*
payload
)
static
int
merge_head_foreach_cb
(
const
git_oid
*
oid
,
void
*
payload
)
{
git_oid
expected_oid
;
struct
merge_head_cb_data
*
cb_data
=
payload
;
git_oid_fromstr
(
&
expected_oid
,
cb_data
->
oid_str
[
cb_data
->
i
]);
cl_assert
(
git_oid_cmp
(
&
expected_oid
,
oid
)
==
0
);
cb_data
->
i
++
;
return
0
;
}
...
...
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