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
81609902
Commit
81609902
authored
Apr 05, 2020
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
describe: use GIT_ASSERT
parent
65c23e9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/describe.c
+4
-2
No files found.
src/describe.c
View file @
81609902
...
...
@@ -655,7 +655,8 @@ int git_describe_commit(
int
error
=
-
1
;
git_describe_options
normalized
;
assert
(
committish
);
GIT_ASSERT_ARG
(
result
);
GIT_ASSERT_ARG
(
committish
);
data
.
result
=
git__calloc
(
1
,
sizeof
(
git_describe_result
));
GIT_ERROR_CHECK_ALLOC
(
data
.
result
);
...
...
@@ -775,7 +776,8 @@ int git_describe_format(git_buf *out, const git_describe_result *result, const g
struct
commit_name
*
name
;
git_describe_format_options
opts
;
assert
(
out
&&
result
);
GIT_ASSERT_ARG
(
out
);
GIT_ASSERT_ARG
(
result
);
GIT_ERROR_CHECK_VERSION
(
given
,
GIT_DESCRIBE_FORMAT_OPTIONS_VERSION
,
"git_describe_format_options"
);
normalize_format_options
(
&
opts
,
given
);
...
...
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