The script wasn't perfect yet. It didn't work well in powershell and strangely enough also not well in mintty...
One problem was with " " getting outputted as well, and another was with mkdir or something. Multi md and mkdir used to try and make it work better. Also one comment at bottom added to indicate where this script should run. Now it should be a lot better and run in both: echo Skybuck Flying Here ! echo echo This script create a filter for this git repository echo echo 1. To turn two spaces into one tab on checkout echo 2. To turn one tab into two spaces on commits echo echo For the following Pascal/Delphi file extensions: echo echo pas dpr dpk inc dfm xfm fmx lfm nfm dpkw echo echo This script requires GnuWin32 CoreUtils package to be installed. echo echo Which can be found here: echo http://gnuwin32.sourceforge.net/packages.html echo and here: echo http://gnuwin32.sourceforge.net/packages/coreutils.htm echo echo After installation its bin folder needs to be on the path environment echo So that expand.exe and unexpand.exe can be found and executed. echo echo To run this script type: ./CreateSpacesToTabsFilter.sh echo echo Run it on the main folder containing the subfolder .git echo md .git md .git/info mkdir .git mkdir .git/info echo *.pas filter=tabspace2 > .git/info/attributes echo *.dpr filter=tabspace2 >> .git/info/attributes echo *.dpk filter=tabspace2 >> .git/info/attributes echo *.inc filter=tabspace2 >> .git/info/attributes echo *.dfm filter=tabspace2 >> .git/info/attributes echo *.xfm filter=tabspace2 >> .git/info/attributes echo *.fmx filter=tabspace2 >> .git/info/attributes echo *.lfm filter=tabspace2 >> .git/info/attributes echo *.nfm filter=tabspace2 >> .git/info/attributes echo *.dpkw filter=tabspace2 >> .git/info/attributes Bye, Skybuck. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/6659773c-c755-4775-bb4a-4c2c479a9528n%40googlegroups.com.
