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
e1fca014
Commit
e1fca014
authored
Jul 12, 2011
by
Kirill A. Shutemov
Committed by
Vicent Marti
Jul 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vector: mark internal functions as static
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
parent
046dfea3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/index.c
+5
-5
No files found.
src/index.c
View file @
e1fca014
...
@@ -105,7 +105,7 @@ static int parse_index(git_index *index, const char *buffer, size_t buffer_size)
...
@@ -105,7 +105,7 @@ static int parse_index(git_index *index, const char *buffer, size_t buffer_size)
static
int
is_index_extended
(
git_index
*
index
);
static
int
is_index_extended
(
git_index
*
index
);
static
int
write_index
(
git_index
*
index
,
git_filebuf
*
file
);
static
int
write_index
(
git_index
*
index
,
git_filebuf
*
file
);
int
index_srch
(
const
void
*
key
,
const
void
*
array_member
)
static
int
index_srch
(
const
void
*
key
,
const
void
*
array_member
)
{
{
const
char
*
filename
=
(
const
char
*
)
key
;
const
char
*
filename
=
(
const
char
*
)
key
;
const
git_index_entry
*
entry
=
(
const
git_index_entry
*
)(
array_member
);
const
git_index_entry
*
entry
=
(
const
git_index_entry
*
)(
array_member
);
...
@@ -113,7 +113,7 @@ int index_srch(const void *key, const void *array_member)
...
@@ -113,7 +113,7 @@ int index_srch(const void *key, const void *array_member)
return
strcmp
(
filename
,
entry
->
path
);
return
strcmp
(
filename
,
entry
->
path
);
}
}
int
index_cmp
(
const
void
*
a
,
const
void
*
b
)
static
int
index_cmp
(
const
void
*
a
,
const
void
*
b
)
{
{
const
git_index_entry
*
entry_a
=
(
const
git_index_entry
*
)(
a
);
const
git_index_entry
*
entry_a
=
(
const
git_index_entry
*
)(
a
);
const
git_index_entry
*
entry_b
=
(
const
git_index_entry
*
)(
b
);
const
git_index_entry
*
entry_b
=
(
const
git_index_entry
*
)(
b
);
...
@@ -121,7 +121,7 @@ int index_cmp(const void *a, const void *b)
...
@@ -121,7 +121,7 @@ int index_cmp(const void *a, const void *b)
return
strcmp
(
entry_a
->
path
,
entry_b
->
path
);
return
strcmp
(
entry_a
->
path
,
entry_b
->
path
);
}
}
int
unmerged_srch
(
const
void
*
key
,
const
void
*
array_member
)
static
int
unmerged_srch
(
const
void
*
key
,
const
void
*
array_member
)
{
{
const
char
*
path
=
(
const
char
*
)
key
;
const
char
*
path
=
(
const
char
*
)
key
;
const
git_index_entry_unmerged
*
entry
=
(
const
git_index_entry_unmerged
*
)(
array_member
);
const
git_index_entry_unmerged
*
entry
=
(
const
git_index_entry_unmerged
*
)(
array_member
);
...
@@ -129,7 +129,7 @@ int unmerged_srch(const void *key, const void *array_member)
...
@@ -129,7 +129,7 @@ int unmerged_srch(const void *key, const void *array_member)
return
strcmp
(
path
,
entry
->
path
);
return
strcmp
(
path
,
entry
->
path
);
}
}
int
unmerged_cmp
(
const
void
*
a
,
const
void
*
b
)
static
int
unmerged_cmp
(
const
void
*
a
,
const
void
*
b
)
{
{
const
git_index_entry_unmerged
*
info_a
=
(
const
git_index_entry_unmerged
*
)(
a
);
const
git_index_entry_unmerged
*
info_a
=
(
const
git_index_entry_unmerged
*
)(
a
);
const
git_index_entry_unmerged
*
info_b
=
(
const
git_index_entry_unmerged
*
)(
b
);
const
git_index_entry_unmerged
*
info_b
=
(
const
git_index_entry_unmerged
*
)(
b
);
...
@@ -137,7 +137,7 @@ int unmerged_cmp(const void *a, const void *b)
...
@@ -137,7 +137,7 @@ int unmerged_cmp(const void *a, const void *b)
return
strcmp
(
info_a
->
path
,
info_b
->
path
);
return
strcmp
(
info_a
->
path
,
info_b
->
path
);
}
}
unsigned
int
index_create_mode
(
unsigned
int
mode
)
static
unsigned
int
index_create_mode
(
unsigned
int
mode
)
{
{
if
(
S_ISLNK
(
mode
))
if
(
S_ISLNK
(
mode
))
return
S_IFLNK
;
return
S_IFLNK
;
...
...
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