Commit 973a09a4 by Axel Rasmussen

index: don't populate nsec values if GIT_USE_NSEC is off

parent c7b17fb5
......@@ -1081,6 +1081,9 @@ void git_futils_filestamp_set_from_stat(
if (st) {
stamp->mtime = *statmtime;
#if !defined(GIT_USE_NSEC)
stamp->mtime.tv_nsec = 0;
#endif
stamp->size = (git_off_t)st->st_size;
stamp->ino = (unsigned int)st->st_ino;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment