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
263e674e
Commit
263e674e
authored
Feb 11, 2016
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge tests: correct casts
parent
ad8aa112
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/merge/workdir/dirty.c
+3
-3
No files found.
tests/merge/workdir/dirty.c
View file @
263e674e
...
...
@@ -162,8 +162,8 @@ static void hack_index(char *files[])
cl_git_pass
(
p_utimes
(
path
.
ptr
,
times
));
cl_git_pass
(
p_stat
(
path
.
ptr
,
&
statbuf
));
entry
->
ctime
.
seconds
=
(
git_time
_t
)
statbuf
.
st_ctime
;
entry
->
mtime
.
seconds
=
(
git_time
_t
)
statbuf
.
st_mtime
;
entry
->
ctime
.
seconds
=
(
int32
_t
)
statbuf
.
st_ctime
;
entry
->
mtime
.
seconds
=
(
int32
_t
)
statbuf
.
st_mtime
;
#if defined(GIT_USE_NSEC)
entry
->
ctime
.
nanoseconds
=
statbuf
.
st_ctim
.
tv_nsec
;
entry
->
mtime
.
nanoseconds
=
statbuf
.
st_mtim
.
tv_nsec
;
...
...
@@ -175,7 +175,7 @@ static void hack_index(char *files[])
entry
->
ino
=
statbuf
.
st_ino
;
entry
->
uid
=
statbuf
.
st_uid
;
entry
->
gid
=
statbuf
.
st_gid
;
entry
->
file_size
=
statbuf
.
st_size
;
entry
->
file_size
=
(
uint32_t
)
statbuf
.
st_size
;
}
git_buf_free
(
&
path
);
...
...
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