File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -1374,6 +1374,10 @@ ifdef USE_NED_ALLOCATOR
13741374 COMPAT_OBJS += compat/nedmalloc/nedmalloc.o
13751375endif
13761376
1377+ ifdef GIT_TEST_CMP_USE_COPIED_CONTEXT
1378+ export GIT_TEST_CMP_USE_COPIED_CONTEXT
1379+ endif
1380+
13771381ifeq ($(TCLTK_PATH ) ,)
13781382NO_TCLTK =NoThanks
13791383endif
Original file line number Diff line number Diff line change 66-include ../config.mak
77
88# GIT_TEST_OPTS=--verbose --debug
9- GIT_TEST_CMP ?= $(DIFF )
109SHELL_PATH ?= $(SHELL )
1110TAR ?= $(TAR )
1211RM ?= rm -f
1312
14- # Make sure test-lib.sh uses make's value of GIT_TEST_CMP
15- export GIT_TEST_CMP
16-
1713# Shell quote;
1814SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH ) )
1915
Original file line number Diff line number Diff line change @@ -63,7 +63,16 @@ export GIT_MERGE_VERBOSITY
6363export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME
6464export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME
6565export EDITOR
66- GIT_TEST_CMP=${GIT_TEST_CMP:- diff -u}
66+
67+ if test -z " $GIT_TEST_CMP "
68+ then
69+ if test -n " $GIT_TEST_CMP_USE_COPIED_CONTEXT "
70+ then
71+ GIT_TEST_CMP=" $DIFF -c"
72+ else
73+ GIT_TEST_CMP=" $DIFF -u"
74+ fi
75+ fi
6776
6877# Protect ourselves from common misconfiguration to export
6978# CDPATH into the environment
You can’t perform that action at this time.
0 commit comments