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
b2ca8d9c
Commit
b2ca8d9c
authored
Feb 12, 2016
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index: explicitly cast the teeny index entry members
parent
997e0301
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/index.c
+3
-3
No files found.
src/index.c
View file @
b2ca8d9c
...
...
@@ -826,8 +826,8 @@ const git_index_entry *git_index_get_bypath(
void
git_index_entry__init_from_stat
(
git_index_entry
*
entry
,
struct
stat
*
st
,
bool
trust_mode
)
{
entry
->
ctime
.
seconds
=
(
git_time
_t
)
st
->
st_ctime
;
entry
->
mtime
.
seconds
=
(
git_time
_t
)
st
->
st_mtime
;
entry
->
ctime
.
seconds
=
(
int32
_t
)
st
->
st_ctime
;
entry
->
mtime
.
seconds
=
(
int32
_t
)
st
->
st_mtime
;
#if defined(GIT_USE_NSEC)
entry
->
mtime
.
nanoseconds
=
st
->
st_mtim
.
tv_nsec
;
entry
->
ctime
.
nanoseconds
=
st
->
st_ctim
.
tv_nsec
;
...
...
@@ -838,7 +838,7 @@ void git_index_entry__init_from_stat(
git_index__create_mode
(
0666
)
:
git_index__create_mode
(
st
->
st_mode
);
entry
->
uid
=
st
->
st_uid
;
entry
->
gid
=
st
->
st_gid
;
entry
->
file_size
=
st
->
st_size
;
entry
->
file_size
=
(
uint32_t
)
st
->
st_size
;
}
static
void
index_entry_adjust_namemask
(
...
...
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