Stupid quoting...
- From
David Kastrup <dak@gnu.org>
- Date
- Jun 13, 2007, 11:30 UTC
- Message-ID
- <86ir9sw0pi.fsf@lola.quinscape.zz>
Hi,
what is the point in quoting file names and their characters in git-diff's output? And what is the recommended way of undoing the damage?
I have something like
git-diff -M -C --name-status -r master^ master | {
while read -r flag name
do
case "$name" in *\\[0-3][0-7][0-7]*)
name=$(echo -e $(echo "$name"|sed 's/\\\([0-3][0-7][0-7]\)/\\0\1/g;s/\\\([^0]\)/\\\\\1/g'))
esac
[...]in order to get through the worst with utf-8 file names, and it is a complete nuisance (double quotemarks are treated later).
Is there any utility or pipe or invocation that can take a sequence of filenames as printed by git and turn them back into what they actually were in the first place?
-- David Kastrup