

A solution is to output - for non-osa files.Īnother issue is: how is the smudge-filter supposed to know if it was an OSA or non-OSA file? Obvious solution is to remove the -no-header switch and always write the header. Now osagetlang exits with non-zero, and because of strict-bash osagitfilter exists. So when it's not an OSA (AppleScript or JavaScript) file, the most sensible thing do is just put the file (binary or text) into git in the clean-filter.

Osagetlang now correctly determines file type. īased on this answer by Daniel Trebbien on stackoverflow and help from guys on the Script Debugger Forum. scpt file to git, but want to use osagitfilter), execute the following statement: git add -renormalize. If you want to (re-)apply osagitfilter to a repository (for example, if you already added your binary. I've setup a demo repository with different. Run osagitfilter -help to see more options. setup.sh rotateĭefault, it prevents from accidently committing AppleScript files with Debugging Mode (from AppleScript Debugger) switched on. With the following command you can create a new log file, while preserving the old ones. Some git-clients, like GitHub Desktop, can be quite chatty so log files grow quite fast. Logging can be found in ~/Library/Logs/Catsdeep/osagitfilter.log and can be easy inspected with Console.app. If you have trouble with the script, switch on logging with. To reset the configuration, run this command. If you want to add your own git configuration, use the following configure command. Do this by running the command below in the root of your repository: echo "*.scpt filter=osa" >. setup.sh configureįor every reporistory you want to use it, put the line *.scpt filter=osa in the gitattributes of your repository.

APPLESCRIPT TEXT CLEANER INSTALL
InstallationĮither clone this repository, or download the latest release and unzip it to a folder where you want to install it.Ĭonfigure the filter by running the following command.
APPLESCRIPT TEXT CLEANER FULL
scpt-file (AppleScript, JavaScript) into your git-repository, and get full textual diff support. Filter to put OSA languages into a git-repository.
