mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-10 08:48:47 +00:00
index: don't populate nsec values if GIT_USE_NSEC is off
This commit is contained in:
parent
c7b17fb5cd
commit
973a09a4ca
@ -1081,6 +1081,9 @@ void git_futils_filestamp_set_from_stat(
|
|||||||
|
|
||||||
if (st) {
|
if (st) {
|
||||||
stamp->mtime = *statmtime;
|
stamp->mtime = *statmtime;
|
||||||
|
#if !defined(GIT_USE_NSEC)
|
||||||
|
stamp->mtime.tv_nsec = 0;
|
||||||
|
#endif
|
||||||
stamp->size = (git_off_t)st->st_size;
|
stamp->size = (git_off_t)st->st_size;
|
||||||
stamp->ino = (unsigned int)st->st_ino;
|
stamp->ino = (unsigned int)st->st_ino;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user