summaryrefslogtreecommitdiff
path: root/src/diff.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-11-23 15:49:54 -0500
committerEdward Thomson <ethomson@microsoft.com>2015-11-23 15:49:54 -0500
commit25e84f959ae77f21c32849aa98f274b9d8283f2d (patch)
treebc26699de31496ffdb1f3afa14e9bee35836915d /src/diff.h
parent66e4e6da594653c461c4344e23738bad153320a1 (diff)
downloadlibgit2-25e84f959ae77f21c32849aa98f274b9d8283f2d.tar.gz
checkout: only consider nsecs when built that way
When examining the working directory and determining whether it's up-to-date, only consider the nanoseconds in the index entry when built with `GIT_USE_NSEC`. This prevents us from believing that the working directory is always dirty when the index was originally written with a git client that uinderstands nsecs (like git 2.x).
Diffstat (limited to 'src/diff.h')
-rw-r--r--src/diff.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/diff.h b/src/diff.h
index 2dfc2c615..47743f88b 100644
--- a/src/diff.h
+++ b/src/diff.h
@@ -28,7 +28,6 @@ enum {
GIT_DIFFCAPS_TRUST_MODE_BITS = (1 << 2), /* use st_mode? */
GIT_DIFFCAPS_TRUST_CTIME = (1 << 3), /* use st_ctime? */
GIT_DIFFCAPS_USE_DEV = (1 << 4), /* use st_dev? */
- GIT_DIFFCAPS_TRUST_NANOSECS = (1 << 5), /* use stat time nanoseconds */
};
#define DIFF_FLAGS_KNOWN_BINARY (GIT_DIFF_FLAG_BINARY|GIT_DIFF_FLAG_NOT_BINARY)