summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 46856f4)
raw | patch | inline | side by side (parent: 46856f4)
author | Junio C Hamano <gitster@pobox.com> | |
Sat, 5 Jun 2010 16:36:13 +0000 (09:36 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 5 Jun 2010 16:36:13 +0000 (09:36 -0700) |
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 <gitster@pobox.com>
$DIFF is not the right way to do so.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | patch | blob | history | |
git-merge-one-file.sh | patch | blob | history |
diff --git a/Makefile b/Makefile
index bcb84be63547c7a8a2c7e7a52f9af7280c72e5a7..0367e8a958dc61a08a9ea605083454f6a6a629f7 100644 (file)
--- a/Makefile
+++ b/Makefile
PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
PYTHON_PATH_SQ = $(subst ','\'',$(PYTHON_PATH))
TCLTK_PATH_SQ = $(subst ','\'',$(TCLTK_PATH))
+DIFF_SQ = $(subst ','\'',$(DIFF))
LIBS = $(GITLIBS) $(EXTLIBS)
$(RM) $@ $@+ && \
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
-e 's|@SHELL_PATH@|$(SHELL_PATH_SQ)|' \
+ -e 's|@@DIFF@@|$(DIFF_SQ)|' \
-e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
-e 's/@@NO_CURL@@/$(NO_CURL)/g' \
-e $(BROKEN_PATH_FIX) \
diff --git a/git-merge-one-file.sh b/git-merge-one-file.sh
index 3145009f4be40d367f52f16dc2b7edb00d153137..b86402afa5d079df8d1cf6eebb15e5727cc8a5de 100755 (executable)
--- a/git-merge-one-file.sh
+++ b/git-merge-one-file.sh
# remove lines that are unique to ours.
orig=`git-unpack-file $2`
sz0=`wc -c <"$orig"`
- $DIFF -u -La/$orig -Lb/$orig $orig $src2 | git apply --no-add
+ @@DIFF@@ -u -La/$orig -Lb/$orig $orig $src2 | git apply --no-add
sz1=`wc -c <"$orig"`
# If we do not have enough common material, it is not