We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fea128b + f01354a commit 31aad4eCopy full SHA for 31aad4e
src/libgit2/index.h
@@ -86,6 +86,8 @@ GIT_INLINE(bool) git_index_time_eq(const git_index_time *one, const git_index_ti
86
return false;
87
88
#ifdef GIT_USE_NSEC
89
+ if (one->nanoseconds == 0 || two->nanoseconds == 0)
90
+ return true;
91
if (one->nanoseconds != two->nanoseconds)
92
93
#endif
@@ -111,6 +113,8 @@ GIT_INLINE(bool) git_index_entry_newer_than_index(
111
113
return true;
112
114
else if ((int32_t)index->stamp.mtime.tv_sec > entry->mtime.seconds)
115
116
+ else if (entry->mtime.nanoseconds == 0 || index->stamp.mtime.tv_nsec == 0)
117
118
else
119
return (uint32_t)index->stamp.mtime.tv_nsec <= entry->mtime.nanoseconds;
120
#else
0 commit comments