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
8d0f4675
Commit
8d0f4675
authored
May 03, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diff: remove unused parameter
parent
9b62e40e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
src/diff_output.c
+1
-4
No files found.
src/diff_output.c
View file @
8d0f4675
...
...
@@ -169,7 +169,6 @@ static int file_is_binary_by_attr(
}
static
int
file_is_binary_by_content
(
git_diff_list
*
diff
,
git_diff_delta
*
delta
,
git_map
*
old_data
,
git_map
*
new_data
)
...
...
@@ -177,8 +176,6 @@ static int file_is_binary_by_content(
git_buf
search
;
git_text_stats
stats
;
GIT_UNUSED
(
diff
);
if
((
delta
->
old_file
.
flags
&
BINARY_DIFF_FLAGS
)
==
0
)
{
search
.
ptr
=
old_data
->
data
;
search
.
size
=
min
(
old_data
->
len
,
4000
);
...
...
@@ -408,7 +405,7 @@ int git_diff_foreach(
*/
if
(
delta
->
binary
==
-
1
)
{
error
=
file_is_binary_by_content
(
d
iff
,
d
elta
,
&
old_data
,
&
new_data
);
delta
,
&
old_data
,
&
new_data
);
if
(
error
<
0
)
goto
cleanup
;
}
...
...
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