Skip to content

Commit

Permalink
Fix some tab/space inconsistencies in git-mergetool.sh
Browse files Browse the repository at this point in the history
git-mergetool.sh mostly uses 8 space tabs and 4 spaces per indent. This
change corrects this in a part of the file affect by a later commit in
this patch series. diff -w considers this change is to be a null change.

Signed-off-by: Charles Bailey <charles@hashpling.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Charles Bailey authored and Junio C Hamano committed Nov 15, 2008
1 parent a0d3ab9 commit 0eea345
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions git-mergetool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -401,25 +401,25 @@ fi


if test $# -eq 0 ; then
files=`git ls-files -u | sed -e 's/^[^ ]* //' | sort -u`
if test -z "$files" ; then
echo "No files need merging"
exit 0
fi
echo Merging the files: "$files"
git ls-files -u |
sed -e 's/^[^ ]* //' |
sort -u |
while IFS= read i
do
printf "\n"
merge_file "$i" < /dev/tty > /dev/tty
done
files=`git ls-files -u | sed -e 's/^[^ ]* //' | sort -u`
if test -z "$files" ; then
echo "No files need merging"
exit 0
fi
echo Merging the files: "$files"
git ls-files -u |
sed -e 's/^[^ ]* //' |
sort -u |
while IFS= read i
do
printf "\n"
merge_file "$i" < /dev/tty > /dev/tty
done
else
while test $# -gt 0; do
printf "\n"
merge_file "$1"
shift
done
while test $# -gt 0; do
printf "\n"
merge_file "$1"
shift
done
fi
exit 0

0 comments on commit 0eea345

Please sign in to comment.