path: root/Makefile
diff options
authorPetr Baudis <>2005-04-13 09:20:38 (GMT)
committerPetr Baudis <xpasky@machine>2005-04-13 09:20:38 (GMT)
commitbdd4da595a265a091a859754a22688f7351cddee (patch)
treef519f8e9742f9e2f37cecdf3e93338d843471580 /Makefile
parent5c2a7fbc362e4227ced84c32c3fdc9682d085962 (diff)
[PATCH] Make nsec checking optional
The nsec field of ctime/mtime is now checked only with -DNSEC defined during compilation. nsec acts broken since it is stored in the icache but apparently just gets to zero when flushed to filesystem not supporting it (e.g. ext3), creating illusions of false changes. At least that's my impression. Signed-off-by: Petr Baudis <>
Diffstat (limited to 'Makefile')
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ac61a61..c7e5c74 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,17 @@
# -DCOLLISION_CHECK if you believe that SHA1's
# 1461501637330902918203684832716283019655932542976 hashes do not give you
# enough guarantees about no collisions between objects ever hapenning.
+# -DNSEC if you want git to care about sub-second file mtimes and ctimes.
+# Note that you need some new glibc (at least >2.2.4) for this, and it will
+# BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely randomly
+# break unless your underlying filesystem supports those sub-second times
+# (my ext3 doesn't).
CFLAGS=-g -O3 -Wall
PROG= update-cache show-diff init-db write-tree read-tree commit-tree \
cat-file fsck-cache checkout-cache diff-tree rev-tree show-files \
check-files ls-tree