Skip to content

chore: add WorktreeCreate hook for worktree isolation#31

Open
Nthalk wants to merge 1 commit into
mainfrom
687791-configure-worktree-isolation
Open

chore: add WorktreeCreate hook for worktree isolation#31
Nthalk wants to merge 1 commit into
mainfrom
687791-configure-worktree-isolation

Conversation

@Nthalk
Copy link
Copy Markdown
Contributor

@Nthalk Nthalk commented Feb 28, 2026

Summary

  • Add a WorktreeCreate hook that runs ./gradlew classes testClasses -PskipSigning -x test to pre-compile classes when a new worktree is created
  • Remove .claude/settings.local.json from .gitignore so the hook configuration is version-controlled and shared

Key Changes

  • .claude/settings.local.json: New hook configuration that compiles main and test classes on worktree creation, avoiding redundant compilation during subsequent work
  • .gitignore: Track settings.local.json so the hook is available to all contributors

Testing Notes

  • Configuration-only change; no tests needed
  • Verify by creating a new worktree and confirming Gradle compiles classes automatically

🤖 Generated with Claude Code

Configure .claude/settings.local.json with a WorktreeCreate hook that
runs `./gradlew classes testClasses -PskipSigning -x test` to compile
sources when a worktree is created. This enables automated work queue
and parallel work via worktree isolation.

Also removes settings.local.json from .gitignore so the hook
configuration is shared across the project.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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