{"thread":{"id":"144","subject":"[PATCH] Better options in Makefile","startedAt":"2005-04-19T17:48:18Z","lastAt":"2005-04-19T17:48:18Z","messageCount":1,"participants":["Pavel Roskin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"846","messageId":"1113932898.3793.14.camel@dv","threadId":"144","inReplyTo":null,"subject":"[PATCH] Better options in Makefile","fromName":"Pavel Roskin","fromEmail":"proski@gnu.org","sentAt":"2005-04-19T17:48:18Z","receivedAt":"2005-04-19T17:48:18Z","isPatch":true,"sender":{"key":"proski@gnu.org","avatar":null},"body":"Hello!\n\nThis patch allows to enable collision check and subsecond time\nresolution by uncommenting one line.  Also, the corresponding comments\nhave been improved.\n\nSigned-off-by: Pavel Roskin <proski@gnu.org>\n\n--- a/Makefile\n+++ b/Makefile\n@@ -1,13 +1,18 @@\n-# -DCOLLISION_CHECK if you believe that SHA1's\n+# Define COLLISION_CHECK if you believe that SHA1's\n # 1461501637330902918203684832716283019655932542976 hashes do not give you\n-# enough guarantees about no collisions between objects ever hapenning.\n-#\n-# -DNSEC if you want git to care about sub-second file mtimes and ctimes.\n-# Note that you need some new glibc (at least >2.2.4) for this, and it will\n+# sufficient guarantee the no collisions between objects will ever happen.\n+\n+# DEFINES += -DCOLLISION_CHECK\n+\n+# Define NSEC if you want git to care about sub-second file mtimes and ctimes.\n+# Note that you will need recent glibc (at least 2.2.4) for this, and it will\n # BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely randomly\n # break unless your underlying filesystem supports those sub-second times\n # (my ext3 doesn't).\n-CFLAGS=-g -O3 -Wall\n+\n+# DEFINES += -DNSEC\n+\n+CFLAGS=-g -O3 -Wall $(DEFINES)\n \n CC=gcc\n AR=ar\n\n\n-- \nRegards,\nPavel Roskin\n\n\n"}]}