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
Jan 21, 2017
by
Edward Thomson
Committed by
GitHub
Jan 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4051 from tiennou/clang-analyzer-1
Clang analyzer run
parents
048c5ea7
49be45a1
Show 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(
int
error
=
0
;
const
char
*
workdir
=
git_repository_workdir
(
repo
);
assert
(
ignores
&&
path
);
assert
(
repo
&&
ignores
&&
path
);
memset
(
ignores
,
0
,
sizeof
(
*
ignores
));
ignores
->
repo
=
repo
;
...
...
@@ -503,9 +503,9 @@ int git_ignore_path_is_ignored(
unsigned
int
i
;
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
(
&
ignores
,
0
,
sizeof
(
ignores
));
...
...
src/pack-objects.c
View file @
185fe9c1
...
...
@@ -1738,7 +1738,7 @@ int git_packbuilder_insert_walk(git_packbuilder *pb, git_revwalk *walk)
if
(
error
==
GIT_ITEROVER
)
error
=
0
;
return
0
;
return
error
;
}
int
git_packbuilder_set_callbacks
(
git_packbuilder
*
pb
,
git_packbuilder_progress
progress_cb
,
void
*
progress_cb_payload
)
...
...
src/patch_generate.c
View file @
185fe9c1
...
...
@@ -451,9 +451,11 @@ int git_diff_foreach(
if
(
binary_cb
||
hunk_cb
||
data_cb
)
{
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
;
}
}
if
((
error
=
patch_generated_invoke_file_callback
(
&
patch
,
&
xo
.
output
))
==
0
)
{
if
(
binary_cb
||
hunk_cb
||
data_cb
)
...
...
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