Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Refactor: Move post-merge-command to end of file

Maximilian Roos07f7b068be20
diff --git a/.config/wt.toml b/.config/wt.toml
index 2218f6c02..3f42c7009 100644
--- a/.config/wt.toml
+++ b/.config/wt.toml
@@ -14,18 +14,17 @@
post-start-command = """
[ -d {repo_root}/target ] &&
[ ! -e {worktree}/target ] &&
-cp -cR {repo_root}/target/. {worktree}/target/ &&
-echo '✓ CoW seeded target/'
+cp -cR {repo_root}/target/. {worktree}/target/
"""
-# Post-merge commands
-# These run in the main worktree after successful merge and push
-# Available template variables: {repo}, {branch}, {worktree}, {repo_root}, {target}
-post-merge-command = "cargo install --path ."
-
# Pre-merge commands
# These run sequentially before merging to main
# All commands must exit with code 0 for merge to proceed
[pre-merge-command]
pre-commit = "pre-commit run --all-files"
insta = "NEXTEST_STATUS_LEVEL=fail NEXTEST_SUCCESS_OUTPUT=never cargo insta test --test-runner nextest --test-runner-fallback true"
+
+# Post-merge commands
+# These run in the main worktree after successful merge and push
+# Available template variables: {repo}, {branch}, {worktree}, {repo_root}, {target}
+post-merge-command = "cargo install --path ."