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 fe44f25 + e78ee33 commit 013d416Copy full SHA for 013d416
src/index.h
@@ -84,6 +84,8 @@ GIT_INLINE(bool) git_index_time_eq(const git_index_time *one, const git_index_ti
84
return false;
85
86
#ifdef GIT_USE_NSEC
87
+ if (one->nanoseconds == 0 || two->nanoseconds == 0)
88
+ return true;
89
if (one->nanoseconds != two->nanoseconds)
90
91
#endif
@@ -109,6 +111,8 @@ GIT_INLINE(bool) git_index_entry_newer_than_index(
109
111
return true;
110
112
else if ((int32_t)index->stamp.mtime.tv_sec > entry->mtime.seconds)
113
114
+ else if (entry->mtime.nanoseconds == 0 || index->stamp.mtime.tv_sec == 0)
115
116
else
117
return (uint32_t)index->stamp.mtime.tv_nsec <= entry->mtime.nanoseconds;
118
#else
0 commit comments