Skip to content

Commit 909a7da

Browse files
author
Abishek Yadav
committed
Revert "feat: add modifies_hooks to disable git before_specify on install"
This reverts commit ebf89eb.
1 parent a88ea53 commit 909a7da

3 files changed

Lines changed: 7 additions & 34 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.2.1 (2026-04-14)
4+
5+
### Removed
6+
- `modifies_hooks` integration (revert of PR #1). The extension no longer disables the git extension’s `before_specify → speckit.git.feature` hook on install. If you rely on a stable primary branch with parallel worktrees, disable or adjust that hook manually in your Spec Kit config.
7+
38
## 1.2.0 (2026-04-14)
49

510
### Changed
@@ -10,12 +15,6 @@
1015
- `post_install` lifecycle script — adds `.worktrees/` to `.gitignore` at install time (not just at first worktree creation)
1116
- README section "How worktrees stay isolated" documenting gitignore + commit isolation model
1217

13-
## 1.1.0 (2026-04-13)
14-
15-
### Added
16-
- `modifies_hooks` declaration: automatically disables `before_specify -> speckit.git.feature` on install (with user consent) so the primary checkout stays on a stable branch
17-
- Requires Spec Kit with `modifies_hooks` support ([github/spec-kit#2209](https://github.com/github/spec-kit/pull/2209))
18-
1918
## 1.0.0 (2026-04-13)
2019

2120
### Added

README.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -74,29 +74,10 @@ dotworktrees_dir: ".worktrees"
7474
| `/speckit.worktrees.list` | Dashboard: status, artifacts, tasks | No |
7575
| `/speckit.worktrees.clean` | Remove merged/stale worktrees | Yes |
7676

77-
## Hooks
77+
## Hook
7878

7979
**`after_specify`** — automatically creates a worktree after a new feature is specified. Controlled by the `auto_create` config value.
8080

81-
## Hook overrides
82-
83-
This extension declares `modifies_hooks` in `extension.yml` to **disable** the git extension's `before_specify -> speckit.git.feature` hook on install. This keeps the primary checkout on a stable branch (e.g. `main`) while worktrees handle feature branch isolation.
84-
85-
During `specify extension add`, you will see a consent prompt:
86-
87-
```
88-
Extension 'worktrees' requests the following hook modifications:
89-
90-
Hook Target Extension Command Action Reason
91-
before_specify git speckit.git.feature disable Worktree-parallel keeps primary checkout...
92-
93-
Apply these modifications? [Y/n]:
94-
```
95-
96-
Answering **Y** disables the hook. Answering **N** installs the extension without modifying hooks (you can disable it manually in `.specify/extensions.yml`). Removing the extension via `specify extension remove worktrees` restores the original hook state.
97-
98-
**Requires**: Spec Kit with `modifies_hooks` support (see [github/spec-kit#2209](https://github.com/github/spec-kit/pull/2209)).
99-
10081
## Script usage
10182

10283
The bash script can be called directly for automation:

extension.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ schema_version: "1.0"
33
extension:
44
id: worktrees
55
name: "Worktrees"
6-
version: "1.2.0"
6+
version: "1.2.1"
77
description: "Default-on worktree isolation for parallel agents — sibling or nested layout"
88
author: "dango85"
99
repository: "https://github.com/dango85/spec-kit-worktree-parallel"
@@ -44,13 +44,6 @@ lifecycle:
4444
script: scripts/bash/post-install.sh
4545
description: "Add .worktrees/ to .gitignore so worktree directories are never committed to the main repo"
4646

47-
modifies_hooks:
48-
- hook: before_specify
49-
extension: git
50-
command: speckit.git.feature
51-
action: disable
52-
reason: "Worktree-parallel keeps primary checkout on a stable branch (e.g. main); branch creation is handled by git worktree add -b during after_specify"
53-
5447
tags:
5548
- "worktree"
5649
- "git"

0 commit comments

Comments
 (0)