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
4604a654
Commit
4604a654
authored
Nov 21, 2012
by
Russell Belfer
Committed by
Ben Straub
Nov 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update internal index API to avoid cast
parent
d574de0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/index.c
+4
-4
No files found.
src/index.c
View file @
4604a654
...
...
@@ -94,7 +94,7 @@ static size_t read_entry(git_index_entry *dest, const void *buffer, size_t buffe
static
int
read_header
(
struct
index_header
*
dest
,
const
void
*
buffer
);
static
int
parse_index
(
git_index
*
index
,
const
char
*
buffer
,
size_t
buffer_size
);
static
int
is_index_extended
(
git_index
*
index
);
static
bool
is_index_extended
(
git_index
*
index
);
static
int
write_index
(
git_index
*
index
,
git_filebuf
*
file
);
static
int
index_find
(
git_index
*
index
,
const
char
*
path
,
int
stage
);
...
...
@@ -1363,7 +1363,7 @@ static int parse_index(git_index *index, const char *buffer, size_t buffer_size)
return
0
;
}
static
int
is_index_extended
(
git_index
*
index
)
static
bool
is_index_extended
(
git_index
*
index
)
{
size_t
i
,
extended
;
git_index_entry
*
entry
;
...
...
@@ -1378,7 +1378,7 @@ static int is_index_extended(git_index *index)
}
}
return
(
int
)
extended
;
return
(
extended
>
0
)
;
}
static
int
write_disk_entry
(
git_filebuf
*
file
,
git_index_entry
*
entry
)
...
...
@@ -1534,7 +1534,7 @@ static int write_index(git_index *index, git_filebuf *file)
{
git_oid
hash_final
;
struct
index_header
header
;
int
is_extended
;
bool
is_extended
;
assert
(
index
&&
file
);
...
...
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