You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,7 @@ grove add
89
89
# Example generated name: quiet-meadow
90
90
# If .groverc sets "branchPrefix": "safia", example: safia/quiet-meadow
91
91
# Directory remains: quiet-meadow
92
+
# branchPrefix only accepts alphanumeric characters
92
93
```
93
94
94
95
Track a remote branch:
@@ -113,7 +114,7 @@ Bootstrap a newly created worktree with project-scoped commands:
113
114
114
115
Save this as `.groverc` in your Grove project root (the directory that contains your bare clone, for example `repo/.groverc` next to `repo/repo.git`).
115
116
116
-
When `grove add` is called without an explicit branch name, Grove generates an adjective-noun name and prepends `branchPrefix` to the branch name when configured. The worktree directory keeps the generated base name.
117
+
When `grove add` is called without an explicit branch name, Grove generates an adjective-noun name and prepends `branchPrefix` to the branch name when configured. `branchPrefix` must be alphanumeric only (letters and numbers). The worktree directory keeps the generated base name.
117
118
118
119
When `grove add` creates a worktree, it runs each bootstrap command in order inside that new worktree directory.
<p>Optional bootstrap commands from <code>.groverc</code> run in the new worktree:</p>
@@ -815,7 +816,7 @@ <h3>Add a new worktree</h3>
815
816
}
816
817
}</code></pre>
817
818
<p>Place <code>.groverc</code> in the Grove project root (next to the bare clone directory).</p>
818
-
<p>When <code>grove add</code> is called without an explicit branch name, Grove generates an adjective-noun name and prepends <code>branchPrefix</code> to the branch name when configured. The worktree directory keeps the generated base name.</p>
819
+
<p>When <code>grove add</code> is called without an explicit branch name, Grove generates an adjective-noun name and prepends <code>branchPrefix</code> to the branch name when configured. <code>branchPrefix</code> must be alphanumeric only (letters and numbers). The worktree directory keeps the generated base name.</p>
819
820
<p>Commands must be portable across Linux/macOS/Windows and use executable + args only (no shell operators like <code>&&</code> or pipes). If one command fails, Grove continues and reports a partial bootstrap state.</p>
0 commit comments