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
8c4c357f
Commit
8c4c357f
authored
Jun 19, 2012
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clar: Fix warnings
parent
31eed56b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
src/revparse.c
+1
-1
tests-clar/object/tree/write.c
+6
-1
tests-clar/revwalk/mergebase.c
+1
-0
No files found.
src/revparse.c
View file @
8c4c357f
...
...
@@ -537,7 +537,7 @@ static int oid_for_tree_path(git_oid *out, git_tree *tree, git_repository *repo,
char
*
tok
;
void
*
alloc
=
str
;
git_tree
*
tree2
=
tree
;
const
git_tree_entry
*
entry
;
const
git_tree_entry
*
entry
=
NULL
;
while
((
tok
=
git__strtok
(
&
str
,
"/
\\
"
))
!=
NULL
)
{
entry
=
git_tree_entry_byname
(
tree2
,
tok
);
...
...
tests-clar/object/tree/write.c
View file @
8c4c357f
...
...
@@ -89,7 +89,8 @@ void test_object_tree_write__subtree(void)
void
test_object_tree_write__sorted_subtrees
(
void
)
{
git_treebuilder
*
builder
;
unsigned
int
i
,
position_c
,
position_cake
,
position_config
;
unsigned
int
i
;
int
position_c
=
-
1
,
position_cake
=
-
1
,
position_config
=
-
1
;
struct
{
unsigned
int
attr
;
...
...
@@ -140,6 +141,10 @@ void test_object_tree_write__sorted_subtrees(void)
position_config
=
i
;
}
cl_assert
(
position_c
!=
-
1
);
cl_assert
(
position_cake
!=
-
1
);
cl_assert
(
position_config
!=
-
1
);
cl_assert
(
position_c
<
position_cake
);
cl_assert
(
position_cake
<
position_config
);
...
...
tests-clar/revwalk/mergebase.c
View file @
8c4c357f
#include "clar_libgit2.h"
#include "vector.h"
#include <stdarg.h>
static
git_repository
*
_repo
;
...
...
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