Skip to content

Commit

Permalink
Allow git-mergetool to handle paths with a leading space
Browse files Browse the repository at this point in the history
Signed-off-by: Rogan Dawes <rogan@dawes.za.net>
  • Loading branch information
Rogan Dawes authored and Junio C Hamano committed Jan 8, 2008
1 parent 7ec4395 commit 2e8fd78
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions git-mergetool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,11 @@ if test $# -eq 0 ; then
echo "No files need merging"
exit 0
fi
echo Merging the files: $files
git ls-files -u | sed -e 's/^[^ ]* //' | sort -u | while read i
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
Expand Down

0 comments on commit 2e8fd78

Please sign in to comment.