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
1e3c2d9c
Commit
1e3c2d9c
authored
Apr 05, 2020
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
status: use GIT_ASSERT
parent
9522de90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/status.c
+7
-4
No files found.
src/status.c
View file @
1e3c2d9c
...
...
@@ -391,14 +391,14 @@ done:
size_t
git_status_list_entrycount
(
git_status_list
*
status
)
{
assert
(
status
);
GIT_ASSERT_ARG_WITH_RETVAL
(
status
,
0
);
return
status
->
paired
.
length
;
}
const
git_status_entry
*
git_status_byindex
(
git_status_list
*
status
,
size_t
i
)
{
assert
(
status
);
GIT_ASSERT_ARG_WITH_RETVAL
(
status
,
NULL
);
return
git_vector_get
(
&
status
->
paired
,
i
);
}
...
...
@@ -492,7 +492,9 @@ int git_status_file(
struct
status_file_info
sfi
=
{
0
};
git_index
*
index
;
assert
(
status_flags
&&
repo
&&
path
);
GIT_ASSERT_ARG
(
status_flags
);
GIT_ASSERT_ARG
(
repo
);
GIT_ASSERT_ARG
(
path
);
if
((
error
=
git_repository_index__weakptr
(
&
index
,
repo
))
<
0
)
return
error
;
...
...
@@ -558,7 +560,8 @@ int git_status_init_options(git_status_options *opts, unsigned int version)
int
git_status_list_get_perfdata
(
git_diff_perfdata
*
out
,
const
git_status_list
*
status
)
{
assert
(
out
);
GIT_ASSERT_ARG
(
out
);
GIT_ERROR_CHECK_VERSION
(
out
,
GIT_DIFF_PERFDATA_VERSION
,
"git_diff_perfdata"
);
out
->
stat_calls
=
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