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
428f1acf
Commit
428f1acf
authored
Jun 15, 2021
by
Dmitry Lobanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
submodule: git submodule dup out and source parameters have become mandatory.
parent
11452ca1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/git2/submodule.h
+1
-1
src/submodule.c
+2
-2
No files found.
include/git2/submodule.h
View file @
428f1acf
...
...
@@ -227,7 +227,7 @@ GIT_EXTERN(int) git_submodule_lookup(
* Create an in-memory copy of a submodule. The copy must be explicitly
* free'd or it will leak.
*
* @param out Pointer to store the copy of the submodule.
Cannot be NULL.
* @param out Pointer to store the copy of the submodule.
* @param source Original submodule to copy.
*/
GIT_EXTERN
(
int
)
git_submodule_dup
(
git_submodule
**
out
,
git_submodule
*
source
);
...
...
src/submodule.c
View file @
428f1acf
...
...
@@ -1857,9 +1857,9 @@ static void submodule_release(git_submodule *sm)
int
git_submodule_dup
(
git_submodule
**
out
,
git_submodule
*
source
)
{
GIT_ASSERT_ARG
(
out
);
GIT_ASSERT_ARG
(
source
);
if
(
source
!=
NULL
)
GIT_REFCOUNT_INC
(
source
);
GIT_REFCOUNT_INC
(
source
);
*
out
=
source
;
return
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