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
11968073
Commit
11968073
authored
Jan 23, 2017
by
Edward Thomson
Committed by
GitHub
Jan 23, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4087 from tiennou/warnings
Fix a few recent warnings
parents
185fe9c1
e2b3dc16
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
include/git2/tree.h
+1
-1
src/submodule.c
+2
-1
No files found.
include/git2/tree.h
View file @
11968073
...
@@ -381,7 +381,7 @@ GIT_EXTERN(int) git_treebuilder_write(
...
@@ -381,7 +381,7 @@ GIT_EXTERN(int) git_treebuilder_write(
*
*
* @see git_treebuilder_write
* @see git_treebuilder_write
*
*
* @param id Pointer to store the OID of the newly written tree
* @param
o
id Pointer to store the OID of the newly written tree
* @param bld Tree builder to write
* @param bld Tree builder to write
* @param tree Shared buffer for writing the tree. Will be grown as necessary.
* @param tree Shared buffer for writing the tree. Will be grown as necessary.
* @return 0 or an error code
* @return 0 or an error code
...
...
src/submodule.c
View file @
11968073
...
@@ -349,9 +349,10 @@ done:
...
@@ -349,9 +349,10 @@ done:
static
int
submodules_from_index
(
git_strmap
*
map
,
git_index
*
idx
,
git_config
*
cfg
)
static
int
submodules_from_index
(
git_strmap
*
map
,
git_index
*
idx
,
git_config
*
cfg
)
{
{
int
error
;
int
error
;
git_iterator
*
i
;
git_iterator
*
i
=
NULL
;
const
git_index_entry
*
entry
;
const
git_index_entry
*
entry
;
git_strmap
*
names
=
0
;
git_strmap
*
names
=
0
;
git_strmap_alloc
(
&
names
);
git_strmap_alloc
(
&
names
);
if
((
error
=
load_submodule_names
(
names
,
cfg
)))
if
((
error
=
load_submodule_names
(
names
,
cfg
)))
goto
done
;
goto
done
;
...
...
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