Unverified Commit 341608dc by Edward Thomson Committed by GitHub

Merge pull request #4507 from tomas/patch-1

Honor 'GIT_USE_NSEC' option in `filesystem_iterator_set_current`
parents 9d8510b3 054e4c08
......@@ -1458,10 +1458,15 @@ static void filesystem_iterator_set_current(
filesystem_iterator_entry *entry)
{
iter->entry.ctime.seconds = entry->st.st_ctime;
iter->entry.ctime.nanoseconds = entry->st.st_ctime_nsec;
iter->entry.mtime.seconds = entry->st.st_mtime;
#if defined(GIT_USE_NSEC)
iter->entry.ctime.nanoseconds = entry->st.st_ctime_nsec;
iter->entry.mtime.nanoseconds = entry->st.st_mtime_nsec;
#else
iter->entry.ctime.nanoseconds = 0;
iter->entry.mtime.nanoseconds = 0;
#endif
iter->entry.dev = entry->st.st_dev;
iter->entry.ino = entry->st.st_ino;
......
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