Repository navigation
✨ feat(ableton): list devices still in text form and keep CRLF in devices - #532
Merged
Merged
Conversation
…ices ableton:filter:install --check now lists each project .amxd that is still the text form in the working tree, which Live can't load, and says how to check it out through the filter. -text on the .amxd line keeps core.autocrlf=input from turning CRLF in a patcher into LF. A test pins that a filter defined in the global gitconfig reaches each checkout's own scripts, and that a fresh clone still needs a second checkout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d how a global gitconfig behaves Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows ✨ feat(ableton): store Max devices in projects as text through an amxd filter · codekiln/logseq-encode-garden#531, which is merged. This one covers a clone that lacks the
amxdfilter. Such a clone checks out each device as text, which Live can't load.What changed
mise run ableton:filter:install --checknow lists each device underassets/Ableton/Project/that is still text in the working tree, and says to run the task. One run of the task sets both filters, and linked worktrees read the clone's config..amxdline gains-text. codekiln'schezmoi/dot_gitconfigsetscore.autocrlf = input, which turned CRLF in a test device's patcher into LF and changed the device. With-textit comes back identical. 19 devices on this Mac hold CRLF, all frozen.--checklisting, for CRLF undercore.autocrlf = input(it fails without-text), and for filters defined in a global gitconfig.--check.Can both filters live in the global gitconfig?
Yes, with the lines
ableton:filter:installwrites. Git runs a filter command from the top of the working tree, in a linked worktree too, so the relative paths reach that checkout's own scripts.A fresh clone still needs a second checkout.
git cloneandgit worktree addwriteassets/beforemise-tasks/, so the smudge command finds no script on the first checkout and passes the text through. A smudge command that falls back togit cat-file blob "HEAD:<script>"smudged the device during clone and worktree add in a scratch test. It missed only when switching from a branch that predates the filter. The dotfiles repository is unchanged.In a gitconfig file,
;starts a comment unless the value is quoted. A smudge line typed in by hand without quotes made a clone check out an empty device;git config --globalwrites the quotes.Checks
python3 -m unittest discover -s mise-tasks/ableton/filter/lib: 65 tests pass.ableton:filter:install --checkin this worktree passes with the device checked out, and lists it when the working file is text.🤖 Generated with Claude Code