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
f941f035
Commit
f941f035
authored
Sep 24, 2015
by
Edward Thomson
Committed by
Edward Thomson
May 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch: drop some warnings
parent
040ec883
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
src/diff_print.c
+3
-4
src/patch_parse.c
+2
-2
No files found.
src/diff_print.c
View file @
f941f035
...
...
@@ -467,8 +467,7 @@ static int format_binary(
static
int
diff_print_patch_file_binary_noshow
(
diff_print_info
*
pi
,
git_diff_delta
*
delta
,
const
char
*
old_pfx
,
const
char
*
new_pfx
,
const
git_diff_binary
*
binary
)
const
char
*
old_pfx
,
const
char
*
new_pfx
)
{
git_buf
old_path
=
GIT_BUF_INIT
,
new_path
=
GIT_BUF_INIT
;
int
error
;
...
...
@@ -502,7 +501,7 @@ static int diff_print_patch_file_binary(
if
((
pi
->
flags
&
GIT_DIFF_SHOW_BINARY
)
==
0
)
return
diff_print_patch_file_binary_noshow
(
pi
,
delta
,
old_pfx
,
new_pfx
,
binary
);
pi
,
delta
,
old_pfx
,
new_pfx
);
if
(
binary
->
new_file
.
datalen
==
0
&&
binary
->
old_file
.
datalen
==
0
)
return
0
;
...
...
@@ -521,7 +520,7 @@ static int diff_print_patch_file_binary(
git_buf_truncate
(
pi
->
buf
,
pre_binary_size
);
return
diff_print_patch_file_binary_noshow
(
pi
,
delta
,
old_pfx
,
new_pfx
,
binary
);
pi
,
delta
,
old_pfx
,
new_pfx
);
}
}
...
...
src/patch_parse.c
View file @
f941f035
...
...
@@ -184,7 +184,7 @@ static int parse_header_mode(uint16_t *mode, patch_parse_ctx *ctx)
static
int
parse_header_oid
(
git_oid
*
oid
,
size_
t
*
oid_len
,
in
t
*
oid_len
,
patch_parse_ctx
*
ctx
)
{
size_t
len
;
...
...
@@ -201,7 +201,7 @@ static int parse_header_oid(
parse_advance_chars
(
ctx
,
len
);
*
oid_len
=
len
;
*
oid_len
=
(
int
)
len
;
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