Skip to content

✨ feat(ableton): list devices still in text form and keep CRLF in devices - #532

Merged
codekiln merged 2 commits into
mainfrom
claude/amxd-clone-without-filter
Dec 1, 2026
Merged

codekiln merged 2 commits into
mainfrom
claude/amxd-clone-without-filter

Conversation

@codekiln

@codekiln codekiln commented Dec 1, 2026

Copy link
Copy Markdown
Owner

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 amxd filter. Such a clone checks out each device as text, which Live can't load.

What changed

  • install: mise run ableton:filter:install --check now lists each device under assets/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.
  • .gitattributes: the .amxd line gains -text. codekiln's chezmoi/dot_gitconfig sets core.autocrlf = input, which turned CRLF in a test device's patcher into LF and changed the device. With -text it comes back identical. 19 devices on this Mac hold CRLF, all frozen.
  • test_amxd_filter.py: tests for the --check listing, for CRLF under core.autocrlf = input (it fails without -text), and for filters defined in a global gitconfig.
  • The analysis page gains "A clone without the filter", which records the answers below. Logseq/Entity/Ableton/Project mentions --check.

Can both filters live in the global gitconfig?

Yes, with the lines ableton:filter:install writes. 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 clone and git worktree add write assets/ before mise-tasks/, so the smudge command finds no script on the first checkout and passes the text through. A smudge command that falls back to git 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 --global writes the quotes.

Checks

  • python3 -m unittest discover -s mise-tasks/ableton/filter/lib: 65 tests pass.
  • ableton:filter:install --check in this worktree passes with the device checked out, and lists it when the working file is text.
  • Vale words-to-avoid and the wikilink checker: clean on the changed pages.

🤖 Generated with Claude Code

codekiln and others added 2 commits December 1, 2026 06:17
…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>
@codekiln
codekiln merged commit 0b20c15 into main Dec 1, 2026
2 checks passed
@codekiln
codekiln deleted the claude/amxd-clone-without-filter branch December 1, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant