Skip to content

Commit 09ce4bb

Browse files
committed
build: propagate $DIFF to scripts
git-merge-one-file expects to run "-u" capable "diff", but using $DIFF is not the right way to do so. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 46856f4 commit 09ce4bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -1494,6 +1494,7 @@ SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
14941494
PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
14951495
PYTHON_PATH_SQ = $(subst ','\'',$(PYTHON_PATH))
14961496
TCLTK_PATH_SQ = $(subst ','\'',$(TCLTK_PATH))
1497+
DIFF_SQ = $(subst ','\'',$(DIFF))
14971498

14981499
LIBS = $(GITLIBS) $(EXTLIBS)
14991500

@@ -1582,6 +1583,7 @@ define cmd_munge_script
15821583
$(RM) $@ $@+ && \
15831584
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
15841585
-e 's|@SHELL_PATH@|$(SHELL_PATH_SQ)|' \
1586+
-e 's|@@DIFF@@|$(DIFF_SQ)|' \
15851587
-e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
15861588
-e 's/@@NO_CURL@@/$(NO_CURL)/g' \
15871589
-e $(BROKEN_PATH_FIX) \

git-merge-one-file.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ case "${1:-.}${2:-.}${3:-.}" in
107107
# remove lines that are unique to ours.
108108
orig=`git-unpack-file $2`
109109
sz0=`wc -c <"$orig"`
110-
$DIFF -u -La/$orig -Lb/$orig $orig $src2 | git apply --no-add
110+
@@DIFF@@ -u -La/$orig -Lb/$orig $orig $src2 | git apply --no-add
111111
sz1=`wc -c <"$orig"`
112112

113113
# If we do not have enough common material, it is not

0 commit comments

Comments
 (0)