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
185fe9c1
Commit
185fe9c1
authored
8 years ago
by
Edward Thomson
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4051 from tiennou/clang-analyzer-1
Clang analyzer run
parents
048c5ea7
49be45a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
src/ignore.c
+3
-3
src/pack-objects.c
+1
-1
src/patch_generate.c
+3
-1
No files found.
src/ignore.c
View file @
185fe9c1
...
@@ -278,7 +278,7 @@ int git_ignore__for_path(
...
@@ -278,7 +278,7 @@ int git_ignore__for_path(
int
error
=
0
;
int
error
=
0
;
const
char
*
workdir
=
git_repository_workdir
(
repo
);
const
char
*
workdir
=
git_repository_workdir
(
repo
);
assert
(
ignores
&&
path
);
assert
(
repo
&&
ignores
&&
path
);
memset
(
ignores
,
0
,
sizeof
(
*
ignores
));
memset
(
ignores
,
0
,
sizeof
(
*
ignores
));
ignores
->
repo
=
repo
;
ignores
->
repo
=
repo
;
...
@@ -503,9 +503,9 @@ int git_ignore_path_is_ignored(
...
@@ -503,9 +503,9 @@ int git_ignore_path_is_ignored(
unsigned
int
i
;
unsigned
int
i
;
git_attr_file
*
file
;
git_attr_file
*
file
;
assert
(
ignored
&&
pathname
);
assert
(
repo
&&
ignored
&&
pathname
);
workdir
=
repo
?
git_repository_workdir
(
repo
)
:
NULL
;
workdir
=
git_repository_workdir
(
repo
)
;
memset
(
&
path
,
0
,
sizeof
(
path
));
memset
(
&
path
,
0
,
sizeof
(
path
));
memset
(
&
ignores
,
0
,
sizeof
(
ignores
));
memset
(
&
ignores
,
0
,
sizeof
(
ignores
));
...
...
This diff is collapsed.
Click to expand it.
src/pack-objects.c
View file @
185fe9c1
...
@@ -1738,7 +1738,7 @@ int git_packbuilder_insert_walk(git_packbuilder *pb, git_revwalk *walk)
...
@@ -1738,7 +1738,7 @@ int git_packbuilder_insert_walk(git_packbuilder *pb, git_revwalk *walk)
if
(
error
==
GIT_ITEROVER
)
if
(
error
==
GIT_ITEROVER
)
error
=
0
;
error
=
0
;
return
0
;
return
error
;
}
}
int
git_packbuilder_set_callbacks
(
git_packbuilder
*
pb
,
git_packbuilder_progress
progress_cb
,
void
*
progress_cb_payload
)
int
git_packbuilder_set_callbacks
(
git_packbuilder
*
pb
,
git_packbuilder_progress
progress_cb
,
void
*
progress_cb_payload
)
...
...
This diff is collapsed.
Click to expand it.
src/patch_generate.c
View file @
185fe9c1
...
@@ -451,8 +451,10 @@ int git_diff_foreach(
...
@@ -451,8 +451,10 @@ int git_diff_foreach(
if
(
binary_cb
||
hunk_cb
||
data_cb
)
{
if
(
binary_cb
||
hunk_cb
||
data_cb
)
{
if
((
error
=
patch_generated_init
(
&
patch
,
diff
,
idx
))
!=
0
||
if
((
error
=
patch_generated_init
(
&
patch
,
diff
,
idx
))
!=
0
||
(
error
=
patch_generated_load
(
&
patch
,
&
xo
.
output
))
!=
0
)
(
error
=
patch_generated_load
(
&
patch
,
&
xo
.
output
))
!=
0
)
{
git_patch_free
(
&
patch
.
base
);
return
error
;
return
error
;
}
}
}
if
((
error
=
patch_generated_invoke_file_callback
(
&
patch
,
&
xo
.
output
))
==
0
)
{
if
((
error
=
patch_generated_invoke_file_callback
(
&
patch
,
&
xo
.
output
))
==
0
)
{
...
...
This diff is collapsed.
Click to expand it.
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