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
03623b47
Commit
03623b47
authored
Apr 05, 2020
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
futils: use GIT_ASSERT
parent
bc54898f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/futils.c
+3
-4
No files found.
src/futils.c
View file @
03623b47
...
...
@@ -185,7 +185,8 @@ int git_futils_readbuffer_updated(
git_buf
buf
=
GIT_BUF_INIT
;
git_oid
checksum_new
;
assert
(
out
&&
path
&&
*
path
);
GIT_ASSERT_ARG
(
out
);
GIT_ASSERT_ARG
(
path
&&
*
path
);
if
(
updated
!=
NULL
)
*
updated
=
0
;
...
...
@@ -493,7 +494,7 @@ int git_futils_mkdir(
goto
done
;
}
assert
(
len
);
GIT_ASSERT
(
len
);
/*
* We've walked all the given path's parents and it's either relative
...
...
@@ -1128,8 +1129,6 @@ int git_futils_filestamp_check(
void
git_futils_filestamp_set
(
git_futils_filestamp
*
target
,
const
git_futils_filestamp
*
source
)
{
assert
(
target
);
if
(
source
)
memcpy
(
target
,
source
,
sizeof
(
*
target
));
else
...
...
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