Clarify movement message

This commit is contained in:
Colin Caine 2018-05-21 16:33:58 +01:00
parent 0d7fdb1abf
commit d35e0c3411

View file

@ -13,7 +13,7 @@ if [ -n "$uglyFiles" ]; then
git add "$file" git add "$file"
else else
echo "WARN: Staged and working file differ: '$file'" echo "WARN: Staged and working file differ: '$file'"
echo "WARN: Moving working file temporarily..." echo "WARN: Moving working file temporarily (this might upset your editor)"
# Get crazy: backup the working copy of the file, paste the staged version in its place, prettify, add, restore backup # Get crazy: backup the working copy of the file, paste the staged version in its place, prettify, add, restore backup
backup=$(mktemp -p . $file.XXXXXXXXX) backup=$(mktemp -p . $file.XXXXXXXXX)
mv "$file" "$backup" mv "$file" "$backup"