[PATCH v5 1/2] mergetool--lib: set IFS for difftool and mergetool
- From
David Aguilar <davvid@gmail.com>
- Date
- May 20, 2015, 09:02 UTC
- Message-ID
- <1432112562-400-1-git-send-email-davvid@gmail.com>
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