Hi,

I just replaced all indentations in *.cs files that were spaces (including
mixed and files that were all indented with spaces) to tabs by assuming
that 4 spaces should become one tab.

The diff was HUGE, showing that we had a little bit of chaos all over the
place. I tried to look it all through but since the diff was so HUGE my
eyes became blind after the a few dozens of files.

Therefore please review commit 82c3e38 at your best in case the automated
reindentation did something bad. :-)

This was the process I went through:

$ sudo apt install moreutils
$ cat /usr/local/bin/unexpand-file
#!/bin/bash

TABSIZE="$2"
if [ -z "$TABSIZE" ]; then
TABSIZE="4"
fi

FILE="$1"
if [ -z "$FILE" ]; then
echo "Missing argument <file>"
echo "Usage: unexpand-file <file> <tabsize>"
exit 1
fi

echo "Unexpanding $FILE with tab size $TABSIZE .."
unexpand --first-only --tabs=$TABSIZE $FILE | sponge $FILE

$ find -type f -name *.cs -exec unexpand-file {} \;

Cheers
-- 
Dominik Psenner

Reply via email to