From d59dd817c52981bb360c8da841375a1d7735ea29 Mon Sep 17 00:00:00 2001 From: mkp Date: Fri, 14 Feb 2025 12:15:35 +0100 Subject: [PATCH] Remove instruction to mark maxpat files as text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It appears that when explicitly marking a file type as text, git will enforce line endings on checkout more strictly. This can lead to .maxpat files showing up as having whitespace changes even after doing a `git reset —hard` (which checks out files again). Also removes marking the other files as binary since that is not actually needed either; git will automatically detect them as binary. --- maxdiff/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maxdiff/README.md b/maxdiff/README.md index 351b9d9..ff7649b 100644 --- a/maxdiff/README.md +++ b/maxdiff/README.md @@ -68,9 +68,9 @@ brew install python 1. In a `.gitattributes` file in the root of your repository, apply diff attributes for `.maxpat`, `.amxd` and `.als` files: ```text -*.maxpat text diff=maxpat -*.amxd binary diff=amxd -*.als binary diff=als +*.maxpat diff=maxpat +*.amxd diff=amxd +*.als diff=als ``` 2. To make the repository use the custom text converter scripts, add them to your local git configuration: in your `.git` folder, you'll find the `config` file. Assuming this repository is checked out in your home folder, you can add these lines: