git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 1/2] mergetool--lib: set IFS for difftool and mergetool
@ 2015-05-20  9:02 David Aguilar
  2015-05-20  9:02 ` [PATCH v5 2/2] mergetools: add winmerge as a builtin tool David Aguilar
  2015-05-20  9:04 ` [PATCH v5 1/2] mergetool--lib: set IFS for difftool and mergetool Sebastian Schuberth
  0 siblings, 2 replies; 3+ messages in thread
From: David Aguilar @ 2015-05-20  9:02 UTC (permalink / raw)
  To: Phil Susi, git
  Cc: Junio C Hamano, Philip Oakley, Johannes Schindelin,
	Sebastian Schuberth, SZEDER Gábor

git-sh-setup sets IFS but it is not used by git-difftool--helper.
Set IFS in git-mergetool--lib so that the mergetool scriptlets,
diftool, and mergetool do not need to do so.

Signed-off-by: David Aguilar <davvid@gmail.com>
---
This patch is new since last time.  It simplifies the patch that follows.

 git-mergetool--lib.sh | 3 +++
 git-mergetool.sh      | 2 --
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/git-mergetool--lib.sh b/git-mergetool--lib.sh
index fe61e89..14b039d 100644
--- a/git-mergetool--lib.sh
+++ b/git-mergetool--lib.sh
@@ -2,6 +2,9 @@
 
 : ${MERGE_TOOLS_DIR=$(git --exec-path)/mergetools}
 
+IFS='
+'
+
 mode_ok () {
 	if diff_mode
 	then
diff --git a/git-mergetool.sh b/git-mergetool.sh
index d20581c..9f77e3a 100755
--- a/git-mergetool.sh
+++ b/git-mergetool.sh
@@ -451,8 +451,6 @@ fi
 printf "Merging:\n"
 printf "%s\n" "$files"
 
-IFS='
-'
 rc=0
 for i in $files
 do
-- 
2.4.1.218.gc09a0e5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-20  9:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-20  9:02 [PATCH v5 1/2] mergetool--lib: set IFS for difftool and mergetool David Aguilar
2015-05-20  9:02 ` [PATCH v5 2/2] mergetools: add winmerge as a builtin tool David Aguilar
2015-05-20  9:04 ` [PATCH v5 1/2] mergetool--lib: set IFS for difftool and mergetool Sebastian Schuberth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).