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
529df4df
Commit
529df4df
authored
Mar 02, 2012
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for merge of filters branch
parent
e1bcc191
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/diff_output.c
+2
-2
tests-clar/attr/repo.c
+1
-0
No files found.
src/diff_output.c
View file @
529df4df
...
...
@@ -93,9 +93,9 @@ static int set_file_is_binary_by_attr(git_repository *repo, git_diff_file *file)
int
error
=
git_attr_get
(
repo
,
file
->
path
,
"diff"
,
&
value
);
if
(
error
!=
GIT_SUCCESS
)
return
error
;
if
(
value
==
GIT_ATTR_FALSE
)
if
(
GIT_ATTR_FALSE
(
value
)
)
file
->
flags
|=
GIT_DIFF_FILE_BINARY
;
else
if
(
value
==
GIT_ATTR_TRUE
)
else
if
(
GIT_ATTR_TRUE
(
value
)
)
file
->
flags
|=
GIT_DIFF_FILE_NOT_BINARY
;
/* otherwise leave file->flags alone */
return
error
;
...
...
tests-clar/attr/repo.c
View file @
529df4df
...
...
@@ -67,6 +67,7 @@ void test_attr_repo__get_one(void)
},
*
scan
;
for
(
scan
=
test_cases
;
scan
->
path
!=
NULL
;
scan
++
)
{
const
char
*
value
;
cl_git_pass
(
git_attr_get
(
g_repo
,
scan
->
path
,
scan
->
attr
,
&
value
));
attr_check_expected
(
scan
->
expected
,
scan
->
expected_str
,
value
);
}
...
...
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