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
c7974b49
Commit
c7974b49
authored
Jun 26, 2013
by
Justin Spahr-Summers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fail on unmodified deltas when they're unexpected
parent
b0401c68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
tests-clar/diff/submodules.c
+1
-1
No files found.
tests-clar/diff/submodules.c
View file @
c7974b49
...
@@ -47,7 +47,7 @@ static void check_diff_patches(git_diff_list *diff, const char **expected)
...
@@ -47,7 +47,7 @@ static void check_diff_patches(git_diff_list *diff, const char **expected)
for
(
d
=
0
;
d
<
num_d
;
++
d
,
git_diff_patch_free
(
patch
))
{
for
(
d
=
0
;
d
<
num_d
;
++
d
,
git_diff_patch_free
(
patch
))
{
cl_git_pass
(
git_diff_get_patch
(
&
patch
,
&
delta
,
diff
,
d
));
cl_git_pass
(
git_diff_get_patch
(
&
patch
,
&
delta
,
diff
,
d
));
if
(
delta
->
status
==
GIT_DELTA_UNMODIFIED
)
if
(
delta
->
status
==
GIT_DELTA_UNMODIFIED
&&
expected
[
d
]
==
NULL
)
continue
;
continue
;
if
(
expected
[
d
]
&&
!
strcmp
(
expected
[
d
],
"<SKIP>"
))
if
(
expected
[
d
]
&&
!
strcmp
(
expected
[
d
],
"<SKIP>"
))
...
...
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