diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2006-02-17 15:23:16 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-17 16:32:41 -0800 |
commit | 5b5d4d9e1b31997b3179e6a253d47b7eea03d0fa (patch) | |
tree | 02d77f8531075a56ed6dc904a02b45c91b379ed3 /Makefile | |
parent | 8e1618f9612a78ea09b2a926797c781fe06027c9 (diff) | |
download | git-5b5d4d9e1b31997b3179e6a253d47b7eea03d0fa.tar.gz |
Optionally support old diffs
Some versions of diff do not correctly detect a missing new-line at the end
of the file under certain circumstances.
When defining NO_ACCURATE_DIFF, work around this bug.
Signed-off-by: Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -55,6 +55,9 @@ all: # # Define NO_ICONV if your libc does not properly support iconv. # +# Define NO_ACCURATE_DIFF if your diff program at least sometimes misses +# a missing newline at the end of the file. +# # Define COLLISION_CHECK below if you believe that SHA1's # 1461501637330902918203684832716283019655932542976 hashes do not give you # sufficient guarantee that no collisions between objects will ever happen. @@ -403,6 +406,9 @@ else endif endif endif +ifdef NO_ACCURATE_DIFF + ALL_CFLAGS += -DNO_ACCURATE_DIFF +endif ALL_CFLAGS += -DSHA1_HEADER=$(call shellquote,$(SHA1_HEADER)) $(COMPAT_CFLAGS) LIB_OBJS += $(COMPAT_OBJS) |