Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mergetool--lib: set IFS for difftool and mergetool
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,
difftool, and mergetool do not need to do so.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
David Aguilar authored and Junio C Hamano committed May 20, 2015
1 parent 3d4a3ff commit 719518f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions git-mergetool--lib.sh
Expand Up @@ -2,6 +2,9 @@

: ${MERGE_TOOLS_DIR=$(git --exec-path)/mergetools}

IFS='
'

mode_ok () {
if diff_mode
then
Expand Down
2 changes: 0 additions & 2 deletions git-mergetool.sh
Expand Up @@ -451,8 +451,6 @@ fi
printf "Merging:\n"
printf "%s\n" "$files"

IFS='
'
rc=0
for i in $files
do
Expand Down

0 comments on commit 719518f

Please sign in to comment.