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
e8cd4321
Commit
e8cd4321
authored
Dec 23, 2014
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2775 from ethomson/index_entrycounts
index: reuc and name entrycounts should be size_t
parents
0bb237ed
2fe8157e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
include/git2/sys/index.h
+2
-2
src/index.c
+4
-4
No files found.
include/git2/sys/index.h
View file @
e8cd4321
...
...
@@ -42,7 +42,7 @@ typedef struct git_index_reuc_entry {
* @param index an existing index object
* @return integer of count of current filename conflict entries
*/
GIT_EXTERN
(
unsigned
in
t
)
git_index_name_entrycount
(
git_index
*
index
);
GIT_EXTERN
(
size_
t
)
git_index_name_entrycount
(
git_index
*
index
);
/**
* Get a filename conflict entry from the index.
...
...
@@ -90,7 +90,7 @@ GIT_EXTERN(void) git_index_name_clear(git_index *index);
* @param index an existing index object
* @return integer of count of current resolve undo entries
*/
GIT_EXTERN
(
unsigned
in
t
)
git_index_reuc_entrycount
(
git_index
*
index
);
GIT_EXTERN
(
size_
t
)
git_index_reuc_entrycount
(
git_index
*
index
);
/**
* Finds the resolve undo entry that points to the given path in the Git
...
...
src/index.c
View file @
e8cd4321
...
...
@@ -1497,10 +1497,10 @@ void git_index_conflict_iterator_free(git_index_conflict_iterator *iterator)
git__free
(
iterator
);
}
unsigned
in
t
git_index_name_entrycount
(
git_index
*
index
)
size_
t
git_index_name_entrycount
(
git_index
*
index
)
{
assert
(
index
);
return
(
unsigned
int
)
index
->
names
.
length
;
return
index
->
names
.
length
;
}
const
git_index_name_entry
*
git_index_name_get_byindex
(
...
...
@@ -1557,10 +1557,10 @@ void git_index_name_clear(git_index *index)
git_vector_clear
(
&
index
->
names
);
}
unsigned
in
t
git_index_reuc_entrycount
(
git_index
*
index
)
size_
t
git_index_reuc_entrycount
(
git_index
*
index
)
{
assert
(
index
);
return
(
unsigned
int
)
index
->
reuc
.
length
;
return
index
->
reuc
.
length
;
}
static
int
index_reuc_insert
(
...
...
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