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
0066955d
Commit
0066955d
authored
Nov 18, 2012
by
Michael Schubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of warnings
parent
0e9ea5d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
src/repository.c
+2
-2
src/revparse.c
+1
-1
tests-clar/config/read.c
+0
-1
No files found.
src/repository.c
View file @
0066955d
...
@@ -1264,7 +1264,7 @@ int git_repository_head_orphan(git_repository *repo)
...
@@ -1264,7 +1264,7 @@ int git_repository_head_orphan(git_repository *repo)
return
0
;
return
0
;
}
}
int
at_least_one_cb
(
const
char
*
refname
,
void
*
payload
)
static
int
at_least_one_cb
(
const
char
*
refname
,
void
*
payload
)
{
{
GIT_UNUSED
(
refname
);
GIT_UNUSED
(
refname
);
GIT_UNUSED
(
payload
);
GIT_UNUSED
(
payload
);
...
@@ -1287,7 +1287,7 @@ static int repo_contains_no_reference(git_repository *repo)
...
@@ -1287,7 +1287,7 @@ static int repo_contains_no_reference(git_repository *repo)
int
git_repository_is_empty
(
git_repository
*
repo
)
int
git_repository_is_empty
(
git_repository
*
repo
)
{
{
git_reference
*
head
=
NULL
;
git_reference
*
head
=
NULL
;
int
error
,
ref_count
=
0
;
int
error
;
if
(
git_reference_lookup
(
&
head
,
repo
,
GIT_HEAD_FILE
)
<
0
)
if
(
git_reference_lookup
(
&
head
,
repo
,
GIT_HEAD_FILE
)
<
0
)
return
-
1
;
return
-
1
;
...
...
src/revparse.c
View file @
0066955d
...
@@ -268,7 +268,7 @@ static int retrieve_oid_from_reflog(git_oid *oid, git_reference *ref, unsigned i
...
@@ -268,7 +268,7 @@ static int retrieve_oid_from_reflog(git_oid *oid, git_reference *ref, unsigned i
goto
cleanup
;
goto
cleanup
;
}
else
{
}
else
{
int
i
;
unsigned
int
i
;
git_time
commit_time
;
git_time
commit_time
;
for
(
i
=
0
;
i
<
numentries
;
i
++
)
{
for
(
i
=
0
;
i
<
numentries
;
i
++
)
{
...
...
tests-clar/config/read.c
View file @
0066955d
...
@@ -446,7 +446,6 @@ void test_config_read__can_load_and_parse_an_empty_config_file(void)
...
@@ -446,7 +446,6 @@ void test_config_read__can_load_and_parse_an_empty_config_file(void)
void
test_config_read__cannot_load_a_non_existing_config_file
(
void
)
void
test_config_read__cannot_load_a_non_existing_config_file
(
void
)
{
{
git_config
*
cfg
;
git_config
*
cfg
;
int
i
;
cl_assert_equal_i
(
GIT_ENOTFOUND
,
git_config_open_ondisk
(
&
cfg
,
"./no.config"
));
cl_assert_equal_i
(
GIT_ENOTFOUND
,
git_config_open_ondisk
(
&
cfg
,
"./no.config"
));
}
}
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