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
33ae8762
Commit
33ae8762
authored
Apr 25, 2016
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch: identify non-binary patches as `NOT_BINARY`
parent
72827490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/patch_parse.c
+3
-4
No files found.
src/patch_parse.c
View file @
33ae8762
...
...
@@ -810,6 +810,8 @@ static int parse_patch_hunks(
goto
done
;
}
patch
->
base
.
delta
->
flags
|=
GIT_DIFF_FLAG_NOT_BINARY
;
done:
return
error
;
}
...
...
@@ -819,11 +821,8 @@ static int parse_patch_body(
{
if
(
parse_ctx_contains_s
(
ctx
,
"GIT binary patch"
))
return
parse_patch_binary
(
patch
,
ctx
);
else
if
(
parse_ctx_contains_s
(
ctx
,
"@@ -"
))
else
return
parse_patch_hunks
(
patch
,
ctx
);
return
0
;
}
int
check_header_names
(
...
...
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