git-worktrees 0.9.0__tar.gz → 0.11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/.claude/settings.json +0 -1
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/.codex/config.toml +0 -3
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/.github/workflows/publish.yml +89 -16
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/.releasetools.yaml +3 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/AGENTS.md +91 -33
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/CHANGELOG.md +136 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/PKG-INFO +104 -52
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/README.md +103 -51
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/completions/gw.fish +13 -5
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/conf.d/worktrees.fish +1 -1
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/docs/DEVELOPMENT.md +25 -16
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/docs/REFERENCE.md +80 -36
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/docs/commands/branch-prune.md +8 -5
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/docs/commands/branch-status.md +16 -10
- git_worktrees-0.11.0/docs/commands/ci-checks.md +37 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/docs/commands/fast-forward.md +64 -13
- git_worktrees-0.11.0/docs/commands/merge.md +93 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/.claude-plugin/plugin.json +2 -2
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/.codex-plugin/plugin.json +4 -4
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/README.md +32 -13
- git_worktrees-0.11.0/plugin/hooks/codex.json +16 -0
- git_worktrees-0.11.0/plugin/hooks/hooks.json +16 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/plugin.json +2 -2
- git_worktrees-0.11.0/plugin/session.md +32 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/skills/ci-checks/SKILL.md +7 -1
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/skills/fast-forward/SKILL.md +7 -1
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/skills/preflight/rules.json +1 -1
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/skills/prune/SKILL.md +30 -25
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/skills/ship-it/SKILL.md +112 -71
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/skills/ship-it/rights.md +14 -9
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/pyproject.toml +1 -1
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/branch_cli.py +13 -13
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/branch_forge.py +61 -2
- git_worktrees-0.11.0/src/worktrees/branches.py +234 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/ci.py +72 -2
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/cli.py +240 -67
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/fast_forward.py +201 -30
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/merged.py +148 -12
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/new_branch.py +40 -10
- git_worktrees-0.11.0/src/worktrees/pr_merge.py +338 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/prune.py +146 -28
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/render.py +28 -9
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/repo.py +16 -17
- git_worktrees-0.11.0/src/worktrees/verdicts.py +355 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/worktree.py +3 -5
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/conftest.py +33 -1
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_assessment.py +201 -43
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_branch_forge.py +57 -5
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_branches.py +7 -4
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_ci.py +153 -1
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_cli.py +218 -34
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_completions.py +18 -18
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_fast_forward.py +349 -2
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_forge.py +15 -15
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_gates.py +104 -43
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_git_records.py +2 -2
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_new_branch.py +153 -2
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_partial_clone.py +11 -8
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_plugin.py +122 -27
- git_worktrees-0.11.0/tests/test_pr_merge.py +721 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_removal.py +19 -22
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_render.py +29 -1
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_sync.py +46 -16
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_worktree.py +40 -44
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/uv.lock +1 -1
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/completions/_gw +17 -5
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/worktrees.plugin.zsh +1 -1
- git_worktrees-0.9.0/plugin/skills/new-branch/SKILL.md +0 -51
- git_worktrees-0.9.0/src/worktrees/branches.py +0 -160
- git_worktrees-0.9.0/src/worktrees/verdicts.py +0 -230
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/.github/workflows/codeql.yml +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/.github/workflows/testpypi.yml +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/.github/workflows/tests.yml +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/.gitignore +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/.pre-commit-config.yaml +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/.python-version +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/LICENSE +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/Makefile +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/completions/worktrees.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/docs/BENCHMARK.md +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/docs/plans/2026-11-05-worktree-pruning-design.md +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gw.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwa.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwbc.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwbp.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwbs.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwff.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwl.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwm.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwp!.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwp.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwpa!.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwpa.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwr!.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gwr.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/functions/gws.fish +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/hatch_build.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/skills/describe-pr/SKILL.md +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/skills/describe-pr/format.md +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/skills/preflight/SKILL.md +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/plugin/skills/preflight/agents/openai.yaml +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/renovate.json +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/scripts/README.md +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/scripts/benchmark.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/scripts/bump_version.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/scripts/verify-publish.bash +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/__init__.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/errors.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/forge.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/git.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/layout.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/pick.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/progress.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/src/worktrees/sync.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_benchmark.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_command_defaults.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_fixture.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_path_boundaries.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_shims.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_spec.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/tests/test_version.py +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gw +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwa +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwbc +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwbp +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwbs +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwff +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwl +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwm +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwp +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwp! +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwpa +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwpa! +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwr +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gwr! +0 -0
- {git_worktrees-0.9.0 → git_worktrees-0.11.0}/zsh/plugins/worktrees/functions/gws +0 -0
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
name: Publish
|
|
2
|
+
run-name: Release ${{ inputs.version && format('v{0}', inputs.version) || github.ref_name }}
|
|
2
3
|
|
|
3
4
|
# Renaming this file breaks publishing. PyPI's Trusted Publishing matches a
|
|
4
5
|
# request against the repository, this workflow's FILENAME and the environment,
|
|
5
6
|
# so a rename means re-registering the publisher on PyPI first.
|
|
6
7
|
#
|
|
7
|
-
# build -> publish -> release
|
|
8
|
-
#
|
|
8
|
+
# build -> tag -> publish -> release
|
|
9
|
+
# \-> verify
|
|
9
10
|
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
11
|
+
# A release is a version bump merged into main, then published one of two
|
|
12
|
+
# ways, as .releasetools.yaml's release.trigger lists them. Pushing the signed
|
|
13
|
+
# tag v<version> on the release commit starts this workflow. Or a dispatch
|
|
14
|
+
# names the version and the release commit, and the tag job creates the tag
|
|
15
|
+
# once build has passed, before anything is uploaded. Either way the
|
|
16
|
+
# irreversible step is the last one and everything before it is a normal
|
|
17
|
+
# reviewed change.
|
|
13
18
|
#
|
|
14
19
|
# There is no TestPyPI rehearsal. testpypi.yml publishes every commit on main
|
|
15
20
|
# there as <version>.post<epoch> and installs it back, so the tree this tag
|
|
@@ -24,13 +29,23 @@ on:
|
|
|
24
29
|
push:
|
|
25
30
|
tags:
|
|
26
31
|
- "v*.*.*"
|
|
27
|
-
# To re-run a release whose publish failed. Run it against a tag ref, not a
|
|
28
|
-
# branch: every guard below reads the tag at HEAD.
|
|
29
32
|
workflow_dispatch:
|
|
33
|
+
inputs:
|
|
34
|
+
version:
|
|
35
|
+
description: "The version to release, with no v (e.g. 0.9.1). The tag is v<version>."
|
|
36
|
+
required: true
|
|
37
|
+
commit:
|
|
38
|
+
description: "The release commit: its full SHA, or HEAD for whatever the dispatched ref names when the run starts."
|
|
39
|
+
required: false
|
|
40
|
+
default: HEAD
|
|
30
41
|
|
|
31
42
|
permissions:
|
|
32
43
|
contents: read
|
|
33
44
|
|
|
45
|
+
env:
|
|
46
|
+
# The tag this run releases: the one pushed, or the one a dispatch creates.
|
|
47
|
+
TAG: ${{ inputs.version && format('v{0}', inputs.version) || github.ref_name }}
|
|
48
|
+
|
|
34
49
|
jobs:
|
|
35
50
|
# Built once and handed to every job below, so what reaches PyPI is
|
|
36
51
|
# byte-for-byte what was tested and installed here.
|
|
@@ -61,16 +76,49 @@ jobs:
|
|
|
61
76
|
- name: Install the release tools
|
|
62
77
|
uses: releasetools/cli@v0
|
|
63
78
|
|
|
64
|
-
#
|
|
65
|
-
#
|
|
66
|
-
#
|
|
67
|
-
#
|
|
68
|
-
#
|
|
79
|
+
# The guards, cheapest first. A dispatched run builds whatever its ref
|
|
80
|
+
# names when it starts, so it has to be the commit the dispatch named,
|
|
81
|
+
# and the tag it would create must not exist yet. The tag has to name a
|
|
82
|
+
# version the repository actually carries, that version has to have a
|
|
83
|
+
# changelog entry, the commit has to be one main took, and its tests
|
|
84
|
+
# have to have passed already. All of them here in build, because the
|
|
85
|
+
# release job runs after the PyPI upload and a refusal there would be
|
|
86
|
+
# too late.
|
|
87
|
+
- name: Refuse a commit other than the release commit
|
|
88
|
+
if: github.event_name == 'workflow_dispatch'
|
|
89
|
+
env:
|
|
90
|
+
COMMIT: ${{ inputs.commit }}
|
|
91
|
+
run: |
|
|
92
|
+
if [ "$COMMIT" != HEAD ] && [ "$COMMIT" != "$GITHUB_SHA" ]; then
|
|
93
|
+
echo "::error::asked to release $COMMIT, but $GITHUB_REF_NAME is at $GITHUB_SHA"
|
|
94
|
+
exit 1
|
|
95
|
+
fi
|
|
96
|
+
|
|
97
|
+
- name: Refuse a version already tagged
|
|
98
|
+
if: github.event_name == 'workflow_dispatch'
|
|
99
|
+
env:
|
|
100
|
+
GH_TOKEN: ${{ github.token }} # no runner default
|
|
101
|
+
run: |
|
|
102
|
+
if gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/$TAG" >/dev/null 2>&1; then
|
|
103
|
+
echo "::error::$TAG already exists"
|
|
104
|
+
exit 1
|
|
105
|
+
fi
|
|
106
|
+
|
|
69
107
|
- name: Check the tag matches the project version
|
|
108
|
+
if: github.event_name == 'push'
|
|
70
109
|
run: rt git::assert_tag_version "$(uv version --short)"
|
|
71
110
|
|
|
111
|
+
- name: Check the dispatched version is the project version
|
|
112
|
+
if: github.event_name == 'workflow_dispatch'
|
|
113
|
+
run: |
|
|
114
|
+
DECLARED="v$(uv version --short)"
|
|
115
|
+
if [ "$DECLARED" != "$TAG" ]; then
|
|
116
|
+
echo "::error::pyproject.toml declares $DECLARED, not $TAG"
|
|
117
|
+
exit 1
|
|
118
|
+
fi
|
|
119
|
+
|
|
72
120
|
- name: Check the changelog has an entry for it
|
|
73
|
-
run: rt changelog::section "${
|
|
121
|
+
run: rt changelog::section "${TAG#v}" >/dev/null
|
|
74
122
|
|
|
75
123
|
# github:: rather than git::, because this checkout is shallow and
|
|
76
124
|
# merge-base answers from the history it has: on a truncated one it
|
|
@@ -100,7 +148,7 @@ jobs:
|
|
|
100
148
|
- name: Install fish and zsh
|
|
101
149
|
run: sudo apt-get update && sudo apt-get install -y fish zsh
|
|
102
150
|
|
|
103
|
-
#
|
|
151
|
+
# This run is the last chance to catch a regression, so both suites run.
|
|
104
152
|
- name: Run tests
|
|
105
153
|
run: |
|
|
106
154
|
uv run --no-sync pytest tests -q
|
|
@@ -127,10 +175,32 @@ jobs:
|
|
|
127
175
|
path: dist/
|
|
128
176
|
if-no-files-found: error
|
|
129
177
|
|
|
178
|
+
# A dispatch tags the release commit here, after every guard and before the
|
|
179
|
+
# upload, so a second dispatch of the same version stops at this step. The
|
|
180
|
+
# tag is made with this run's GITHUB_TOKEN, which starts no workflow, so it
|
|
181
|
+
# does not start this one a second time. A pushed tag skips this job.
|
|
182
|
+
tag:
|
|
183
|
+
name: Tag the release commit
|
|
184
|
+
if: github.event_name == 'workflow_dispatch'
|
|
185
|
+
runs-on: ubuntu-24.04
|
|
186
|
+
needs: build
|
|
187
|
+
permissions:
|
|
188
|
+
contents: write
|
|
189
|
+
steps:
|
|
190
|
+
- name: Create the tag
|
|
191
|
+
env:
|
|
192
|
+
GH_TOKEN: ${{ github.token }} # no runner default
|
|
193
|
+
run: >-
|
|
194
|
+
gh api --method POST "repos/$GITHUB_REPOSITORY/git/refs"
|
|
195
|
+
-f "ref=refs/tags/$TAG" -f "sha=$GITHUB_SHA"
|
|
196
|
+
|
|
130
197
|
publish:
|
|
131
198
|
name: Publish to PyPI
|
|
132
199
|
runs-on: ubuntu-24.04
|
|
133
|
-
needs: build
|
|
200
|
+
needs: [build, tag]
|
|
201
|
+
# A pushed tag skips the tag job, and a job whose needs include a skipped
|
|
202
|
+
# one is skipped too unless its condition says otherwise.
|
|
203
|
+
if: ${{ !cancelled() && needs.build.result == 'success' && needs.tag.result != 'failure' }}
|
|
134
204
|
# Binds this job to the trusted publisher registered for `pypi`. Add a
|
|
135
205
|
# required reviewer on this environment for a manual gate before anything
|
|
136
206
|
# reaches the real index.
|
|
@@ -172,6 +242,7 @@ jobs:
|
|
|
172
242
|
matrix:
|
|
173
243
|
os: [ubuntu-24.04, ubuntu-26.04]
|
|
174
244
|
needs: publish
|
|
245
|
+
if: ${{ !cancelled() && needs.publish.result == 'success' }}
|
|
175
246
|
permissions:
|
|
176
247
|
contents: read
|
|
177
248
|
steps:
|
|
@@ -221,6 +292,7 @@ jobs:
|
|
|
221
292
|
name: Release
|
|
222
293
|
runs-on: ubuntu-24.04
|
|
223
294
|
needs: publish
|
|
295
|
+
if: ${{ !cancelled() && needs.publish.result == 'success' }}
|
|
224
296
|
permissions:
|
|
225
297
|
contents: write
|
|
226
298
|
steps:
|
|
@@ -233,10 +305,11 @@ jobs:
|
|
|
233
305
|
# What was written for this version, not a list of pull request titles.
|
|
234
306
|
# build already proved the section exists, before anything was published.
|
|
235
307
|
- name: Read the changelog entry
|
|
236
|
-
run: rt changelog::section "${
|
|
308
|
+
run: rt changelog::section "${TAG#v}" >RELEASE_NOTES.md
|
|
237
309
|
|
|
238
310
|
- name: Release
|
|
239
311
|
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3
|
|
240
312
|
with:
|
|
313
|
+
tag_name: ${{ env.TAG }}
|
|
241
314
|
body_path: RELEASE_NOTES.md
|
|
242
315
|
make_latest: true
|
|
@@ -22,4 +22,7 @@ release:
|
|
|
22
22
|
merge: squash
|
|
23
23
|
checks: tests.yml
|
|
24
24
|
publish: publish.yml
|
|
25
|
+
# A pushed signed tag starts publish.yml, or a dispatch with the version
|
|
26
|
+
# and the release commit does and publish.yml creates the tag.
|
|
27
|
+
trigger: [tag, dispatch]
|
|
25
28
|
registry: https://pypi.org/pypi/git-worktrees/{version}/json
|
|
@@ -86,7 +86,11 @@ of the line alone, so no shortcut meets history expansion. `!!` would.
|
|
|
86
86
|
`gw branch create` and `gw fast-forward` start branches, not worktrees.
|
|
87
87
|
`gw branch create NAME` starts NAME off the head ref, as `origin new-branch`
|
|
88
88
|
does, and keeps argparse's 2 for a usage error where `origin` has a single
|
|
89
|
-
non-zero exit code.
|
|
89
|
+
non-zero exit code. On a terminal, standing on a branch other than the head
|
|
90
|
+
branch, it asks whether to stack NAME on that branch, and the sync it runs
|
|
91
|
+
first runs on a thread meanwhile: `_refresh` starts the spinner only once
|
|
92
|
+
the answer is in, so nothing draws over the question. `--here` starts NAME
|
|
93
|
+
from the commit this checkout is on and syncs nothing.
|
|
90
94
|
|
|
91
95
|
`gw fast-forward` starts a branch only when the one you stand on is proved
|
|
92
96
|
finished, by the same `merged.branch_proof` that `gw prune` reads, or when
|
|
@@ -100,6 +104,16 @@ squash holds more than the two share, so no local proof marks the shared
|
|
|
100
104
|
part; `branch_forge.carried_by` asks the forge which merged request carried
|
|
101
105
|
the branch's oldest commit, and that request's commit list marks it, read
|
|
102
106
|
from one page of 100 by choice: a parent seldom drifts further.
|
|
107
|
+
GitHub rewrites that stacked branch's remote copy itself when the parent
|
|
108
|
+
merges, so the branch takes the copy instead, through `_rewritten`: no
|
|
109
|
+
commit in the branch's reflog may reach it, which is when
|
|
110
|
+
`--force-if-includes` refuses the push, and its patch-ids must be the
|
|
111
|
+
branch's own, in order. A copy the branch's own push left is in that reflog,
|
|
112
|
+
so a branch rebased here after its push keeps its newer commits. A run
|
|
113
|
+
before the rewrite arrives finds the copy still holding the merged part;
|
|
114
|
+
when `branch_forge.in_stack` says the open pull request is in a native
|
|
115
|
+
stack, `_awaited` fetches every `REWRITE_INTERVAL` seconds until it
|
|
116
|
+
arrives, and refuses, with the offline command, after `REWRITE_WAIT`.
|
|
103
117
|
Once a carry finishes, each stash made after the merged part moves to the
|
|
104
118
|
replayed copy of its commit, matched by patch-id:
|
|
105
119
|
`git merge-tree --write-tree` re-bases it without touching the checkout,
|
|
@@ -177,19 +191,18 @@ watching. A shortcut has no completion file of its own.
|
|
|
177
191
|
|
|
178
192
|
## The agent plugin reads `--json`
|
|
179
193
|
|
|
180
|
-
`plugin/` ships with the CLI:
|
|
194
|
+
`plugin/` ships with the CLI: six skills, each a directory under
|
|
181
195
|
`plugin/skills/` named as its command is, `/worktrees:<name>` in Claude Code
|
|
182
196
|
and `$worktrees:<name>` in Codex. Skills call `gw` from `$PATH`; nothing
|
|
183
197
|
assumes a plugin root or a checkout at a known path.
|
|
184
198
|
|
|
185
199
|
| skill | runs |
|
|
186
200
|
| --- | --- |
|
|
187
|
-
| `new-branch` | `gw sync`, then `gw branch create` |
|
|
188
201
|
| `fast-forward` | `gw fast-forward --autostash --json`, then each rebase conflict until the branch is level |
|
|
189
202
|
| `ci-checks` | `gw ci-checks --json`, `--wait` to wait without polling |
|
|
190
203
|
| `describe-pr` | checks a review's title and body against its diff, and edits them |
|
|
191
204
|
| `prune` | `gw prune --json` and `gw branch status --json`, then the removals approved |
|
|
192
|
-
| `ship-it` | commits, `fast-forward`, a leased or plain push, `gh pr create`, `describe-pr`, `ci-checks`, fixes on the branch, `
|
|
205
|
+
| `ship-it` | commits, `fast-forward`, a leased or plain push, `gh pr create`, `describe-pr`, `ci-checks`, fixes on the branch, `gw merge` on GitHub or `glab mr merge` on GitLab, then `fast-forward` in the head branch's checkout, unassisted, for this checkout or each branch it is named; given numbers, those open reviews from `ci-checks` on |
|
|
193
206
|
| `preflight` | `jq` merges `preflight/rules.json` into the user's or the project's `.claude/settings.json`, after asking |
|
|
194
207
|
|
|
195
208
|
`describe-pr` and `ship-it` share `describe-pr/format.md`: the
|
|
@@ -214,8 +227,8 @@ skill's commands to never writing `--force`, `--admin`, `--auto` or
|
|
|
214
227
|
`--delete-branch`.
|
|
215
228
|
|
|
216
229
|
The prune skill reads `gw prune --json` and
|
|
217
|
-
`gw branch status --json`, preserving head/sync state and full rows for eligible, empty
|
|
218
|
-
stash-blocked and ignored
|
|
230
|
+
`gw branch status --json`, preserving head/sync state and full rows for eligible, empty
|
|
231
|
+
and stash-blocked cases, and each worktree's ignored paths. `tests/test_plugin.py` extracts the
|
|
219
232
|
actual jq filters and applies them to real CLI output. Checked-out branches
|
|
220
233
|
are absent from the loose-branch list. Paths and restore commands must retain
|
|
221
234
|
exact quoting.
|
|
@@ -229,6 +242,14 @@ and explicit deletion categories. Each worktree goes through
|
|
|
229
242
|
branches through `command gw branch prune`. The plugin never targets its current checkout. It reports
|
|
230
243
|
partial checkout, branch and stash outcomes and actual restore commands.
|
|
231
244
|
|
|
245
|
+
Both clients hand each session `plugin/session.md` when it starts: a
|
|
246
|
+
`SessionStart` hook in `plugin/hooks/hooks.json` for Claude Code and
|
|
247
|
+
`plugin/hooks/codex.json`, which the Codex manifest names, wraps the file
|
|
248
|
+
in the `additionalContext` JSON with `jq`. The rules say how a session uses
|
|
249
|
+
its worktree, including the check it makes before editing: changes it did
|
|
250
|
+
not make, or another process's lock, mean another session works there.
|
|
251
|
+
Nothing locks a worktree for a session.
|
|
252
|
+
|
|
232
253
|
The plugin carries the release version in three manifests, and
|
|
233
254
|
`scripts/bump_version.py` stamps all three. `plugin/plugin.json` is the
|
|
234
255
|
portable manifest, the Claude one with only the fields Agent Plugins v1 names;
|
|
@@ -417,14 +438,17 @@ when eight threads are asking at once.
|
|
|
417
438
|
`gw sync` fetches every remote with `--prune --tags --no-prune-tags`, the
|
|
418
439
|
default first, updates the default remote's HEAD and queries the forge for
|
|
419
440
|
every local branch tip on eight threads. Every other command but
|
|
420
|
-
`gw version`, `gw ci-checks`, `gw fast-forward`, help and
|
|
421
|
-
the same `sync.run` first when
|
|
441
|
+
`gw version`, `gw list`, `gw ci-checks`, `gw merge`, `gw fast-forward`, help and
|
|
442
|
+
completion runs the same `sync.run` first when
|
|
422
443
|
`sync.due` says so: the default remote's refs time is null or at least
|
|
423
444
|
`WORKTREES_SYNC_TTL` seconds old, 60 by default. The forge time is not read,
|
|
424
445
|
since a forge that keeps failing would sync before every command. Without a
|
|
425
446
|
default remote nothing syncs first, because sync records nothing there.
|
|
426
|
-
`gw
|
|
427
|
-
|
|
447
|
+
`gw list` reads only the worktree records, so it never syncs first and
|
|
448
|
+
prints no word about how fresh the evidence is; its `--json` takes `head`
|
|
449
|
+
and `lastSync` from the cache. `gw fast-forward` runs `sync.fetch` on
|
|
450
|
+
every run instead, which fetches the default remote and records the refs
|
|
451
|
+
time.
|
|
428
452
|
|
|
429
453
|
A failed sync before a command is a warning, and the command goes on with
|
|
430
454
|
the evidence it has; quiet and JSON hide the warning. A failed fetch before
|
|
@@ -437,6 +461,15 @@ first, and `gw sync` and `gw ci-checks` refuse at exit 3. Every notice that woul
|
|
|
437
461
|
`Run: gw sync` goes through `sync.hint`, which leaves that off offline,
|
|
438
462
|
since it names a command that refuses there.
|
|
439
463
|
|
|
464
|
+
`gw merge` squashes one GitHub PR at a supplied head SHA. It waits up to ten
|
|
465
|
+
minutes, polling every five seconds, for lower stack members to merge, the
|
|
466
|
+
base to match the stack base and the head to contain the latest parent merge.
|
|
467
|
+
A rewritten head returns `head-moved` at exit 4 without submitting. It reads
|
|
468
|
+
fresh CI and verifies membership and containment again before calling the
|
|
469
|
+
asynchronous merge API, then polls a pending operation for one minute. `enqueued` is queued, not merged. Both clients call
|
|
470
|
+
the same command; their rules admit `gw merge` without general `gh api`
|
|
471
|
+
writes. [Merge](docs/commands/merge.md) describes the result and refusals.
|
|
472
|
+
|
|
440
473
|
`gw ci-checks` reads one review and its checks from the forge each time it
|
|
441
474
|
runs and writes nothing, the sync cache included. It never syncs first: its
|
|
442
475
|
answer comes from the forge, not from local evidence.
|
|
@@ -467,13 +500,18 @@ patch-id input and creates no synthetic commits.
|
|
|
467
500
|
The per-worktree checks run on eight threads. Mutations remain serial.
|
|
468
501
|
|
|
469
502
|
`gw ci-checks` takes GitHub's review and checks from one `gh pr view` with
|
|
470
|
-
`statusCheckRollup
|
|
471
|
-
|
|
503
|
+
`statusCheckRollup` and `commits`. Commit messages and checks describe the
|
|
504
|
+
same `headSha`. `pr.trailers` holds each trailer once, in commit order,
|
|
505
|
+
oldest first, parsed with `git interpret-trailers --parse`. An incomplete
|
|
506
|
+
commit list gives null trailers; GitHub's 100-commit cap also gives null.
|
|
507
|
+
|
|
508
|
+
It keeps the newest run per workflow and name, and a run with
|
|
472
509
|
no start time counts as newest, so a queued re-run supersedes the failure it
|
|
473
510
|
repeats. GitLab needs several calls: the pipeline is read from the project
|
|
474
|
-
that ran it, its jobs across every page,
|
|
475
|
-
|
|
476
|
-
another SHA is stale unless it is the merged-result
|
|
511
|
+
that ran it, its jobs and the MR's commits across every page, then the merge
|
|
512
|
+
request again. A change between the two reads is `stale` and clears the
|
|
513
|
+
trailers. A pipeline for another SHA is stale unless it is the merged-result
|
|
514
|
+
pipeline whose parents
|
|
477
515
|
are the current head and the target's tip. `ci.wait` takes its clock and
|
|
478
516
|
sleep as arguments, so its tests run in-process without waiting.
|
|
479
517
|
|
|
@@ -559,28 +597,44 @@ and asserts it.
|
|
|
559
597
|
## Verdicts and deletion are separate
|
|
560
598
|
|
|
561
599
|
`merged.branch_proof` checks matching cached forge proof, first-parent
|
|
562
|
-
membership, local completion proof,
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
600
|
+
membership, local completion proof, absent evidence, the cached request's
|
|
601
|
+
state, then whether a remote-tracking ref holds the tip. It returns a reason:
|
|
602
|
+
`merged`, `unused`, `closed`, `open`, `pushed`, `unpushed` or `unknown`.
|
|
603
|
+
`gw fast-forward` reads it as it is; prune's assessments split `unused` by
|
|
604
|
+
the branch's reflog into `merged`, `unused` and `stale`, and put the
|
|
605
|
+
checkout facts first, `uncommitted` among them. A row's verdict is `remove`
|
|
606
|
+
for `merged` and `stale` and `keep` for every other reason. First-parent
|
|
607
|
+
history belongs to the assessed head, not a divergent local counterpart.
|
|
608
|
+
|
|
609
|
+
Removing a worktree deletes its HEAD reflog and deleting a branch its
|
|
610
|
+
reflog. `merged.reflog_only` lists the commits only those reach, by
|
|
611
|
+
`rev-list --not --all`, and keeps each whose own patch-id the head lacks;
|
|
612
|
+
they hold the row back until `--delete reflog`, which `--delete all`
|
|
613
|
+
includes and which is the one value `--keep-branch` takes.
|
|
567
614
|
|
|
568
615
|
Content proof compares changed paths, modes and deletions against the head.
|
|
569
616
|
It cannot settle a stacked branch whose intermediate content the head later
|
|
570
617
|
edited. Cached forge proof verifies source tip, source repository, target
|
|
571
|
-
branch and merge ancestry.
|
|
618
|
+
branch and merge ancestry. A request stacked on another branch keeps that
|
|
619
|
+
branch as its target after the forge lands it on the head, so a merge commit
|
|
620
|
+
on the head's first-parent history stands in for the target branch. Closed
|
|
621
|
+
unmerged requests are never proof.
|
|
572
622
|
|
|
573
623
|
`eligible` combines proof, protections and `--delete` permissions.
|
|
574
624
|
`prune.removable()` selects only eligible rows. `main`, `master` and the
|
|
575
625
|
head branch are protected. Locked or dirty worktrees, untracked files,
|
|
576
626
|
initialized submodules and a submodule store left by `deinit` block removal;
|
|
577
627
|
`git worktree remove` refuses each. A locked worktree whose directory is away
|
|
578
|
-
is assessed from its record.
|
|
579
|
-
|
|
628
|
+
is assessed from its record. Empty branches and matching stashes require
|
|
629
|
+
their own permission; ignored paths go with the worktree, listed in the
|
|
630
|
+
disclosure first. `--yes` grants neither. A protection a value lifts ends
|
|
631
|
+
with every value its row needs, and only when those values make the row
|
|
632
|
+
eligible, so one hint followed alone frees it; the prune skill's jq reads
|
|
633
|
+
that wording, and `tests/test_plugin.py` runs it.
|
|
580
634
|
`gw prune` also protects the current worktree; `gw remove` needs a second terminal
|
|
581
635
|
confirmation for it. `--keep-branch` retains the branch and its stashes,
|
|
582
|
-
needs no completion proof for an attached checkout, and combines
|
|
583
|
-
`--delete
|
|
636
|
+
needs no completion proof for an attached checkout, and combines with no
|
|
637
|
+
`--delete` value.
|
|
584
638
|
|
|
585
639
|
The removal snapshot pins the branch and head SHAs, exact path, ignored
|
|
586
640
|
paths and stash identities. Recheck after confirmation precedes plain
|
|
@@ -588,13 +642,15 @@ worktree removal, full-SHA ref deletion and approved stash drops. Ignored
|
|
|
588
642
|
paths are what an ignore pattern names, so a matched directory is one entry;
|
|
589
643
|
the snapshot is a path listing, not a recursive content fingerprint, and a
|
|
590
644
|
file created inside a listed directory after assessment goes with it. The
|
|
591
|
-
disclosure
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
645
|
+
disclosure and the JSON `ignored` field list each
|
|
646
|
+
path as git does, from the top level, sorted, so a tracked directory above
|
|
647
|
+
an ignored one never reads as ignored. A path whose pattern, found with
|
|
648
|
+
`git check-ignore -v`, ends in a bare `*` or `**` reads as its directory,
|
|
649
|
+
since that pattern names the directory's contents. The disclosure quotes a
|
|
650
|
+
path holding a character that would not print, as `git status` does, and
|
|
651
|
+
ends with the `git -C PATH ls-files --others --ignored --exclude-standard`
|
|
652
|
+
line that lists every file below those entries. Stash drops verify SHA and
|
|
653
|
+
repair a concurrent wrong-entry drop using the exact subject. Restoration remains
|
|
598
654
|
possible until Git garbage collection prunes the unreachable stash commit.
|
|
599
655
|
Report checkout, branch and stash outcomes separately after partial failure.
|
|
600
656
|
|
|
@@ -615,7 +671,9 @@ code forever.
|
|
|
615
671
|
The fixture needs no global git config, no signing key, no forge and no
|
|
616
672
|
network. `GIT_CONFIG_GLOBAL` carries that: without it git still reads
|
|
617
673
|
`$HOME/.gitconfig`, and setting `HOME` alone still leaves
|
|
618
|
-
`$XDG_CONFIG_HOME/git/config`. `
|
|
674
|
+
`$XDG_CONFIG_HOME/git/config`. `XDG_CONFIG_HOME` points at the test's own
|
|
675
|
+
directory too, since `GIT_CONFIG_GLOBAL` does not reach `git/ignore`, the
|
|
676
|
+
default `core.excludesFile`. `WORKTREES_OFFLINE=1` in `conftest.ENV` stops
|
|
619
677
|
a command syncing first, which would fetch a remote at `github.com` for
|
|
620
678
|
real. `Network.env` clears it for the fake network, and `conftest.online`
|
|
621
679
|
for a remote on disk.
|
|
@@ -17,6 +17,142 @@ not in here, whatever it cost to build.
|
|
|
17
17
|
A release closes with a `### Choices` section when a decision in it is worth
|
|
18
18
|
the reader's time: what was chosen, and what the alternative failed to do.
|
|
19
19
|
|
|
20
|
+
## 0.11.0 - 2026-11-14
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
`gw prune`, `gw remove` and `gw branch status` give each row a verdict of
|
|
25
|
+
`remove` or `keep` and a reason naming the fact that decides it, such as
|
|
26
|
+
`merged`, `uncommitted`, `closed`, `unpushed` or `in-progress`, in a new
|
|
27
|
+
REASON column and as `reason` and `needs` in the JSON. Scripts that read
|
|
28
|
+
the `empty` or `unknown` verdicts, or pass `--only empty` or
|
|
29
|
+
`--only unknown`, must read `reason` instead; `--only` takes `remove` or
|
|
30
|
+
`keep`.
|
|
31
|
+
|
|
32
|
+
A worktree with uncommitted changes or untracked files reads `keep`. A
|
|
33
|
+
branch whose own commits went into the head branch by fast-forward reads
|
|
34
|
+
`merged`, and one with nothing of its own and no reflog left reads `stale`;
|
|
35
|
+
both are removed without `--delete empty`. Removal holds back a row whose
|
|
36
|
+
deleted reflogs hold a commit the head branch lacks, printing `git show`
|
|
37
|
+
for each, until `--delete reflog`. A branch whose pull request closed
|
|
38
|
+
without merging is kept until `--delete closed`.
|
|
39
|
+
|
|
40
|
+
A `pass --delete` hint appears only where those values free the row, and
|
|
41
|
+
the `--yes` command a preview prints keeps the flags that made the row
|
|
42
|
+
eligible; following either used to leave the row where it was. The
|
|
43
|
+
confirmation lists each worktree, ignored path, reflog commit, branch and
|
|
44
|
+
stash it deletes, and asks with their counts.
|
|
45
|
+
|
|
46
|
+
`gw prune` and `gw remove` delete a worktree's ignored files without a
|
|
47
|
+
permission, listing each ignored path before the confirmation. Drop
|
|
48
|
+
`--delete ignored-files` from scripts: it is now a usage error, and
|
|
49
|
+
`--keep-branch` takes no `--delete` value.
|
|
50
|
+
|
|
51
|
+
### Removed
|
|
52
|
+
|
|
53
|
+
The agent plugin's `new-branch` skill is removed; agents start branches
|
|
54
|
+
with `gw branch create` or `git switch --create`.
|
|
55
|
+
|
|
56
|
+
### Added
|
|
57
|
+
|
|
58
|
+
`gw branch create NAME`, on a terminal and standing on a branch other
|
|
59
|
+
than the head branch, asks whether to stack NAME on that branch while
|
|
60
|
+
its sync runs. `--here` starts NAME from the commit this checkout is
|
|
61
|
+
on without syncing.
|
|
62
|
+
|
|
63
|
+
The agent plugin hands each Claude Code and Codex session the rules for
|
|
64
|
+
how it uses its worktree, through a SessionStart hook that needs `jq`.
|
|
65
|
+
Before editing, a session checks whether another one works in its
|
|
66
|
+
worktree, from uncommitted changes it did not make or another process's
|
|
67
|
+
lock, and moves to a worktree of its own when one does. The rules say to
|
|
68
|
+
ship a change the user decided on once its checks pass, through
|
|
69
|
+
`/worktrees:ship-it`, without being asked, merge included.
|
|
70
|
+
|
|
71
|
+
### Fixed
|
|
72
|
+
|
|
73
|
+
`gw add`, `gw branch create` and `gw fast-forward NAME` refuse a branch
|
|
74
|
+
name that nests with an existing branch, such as `codex` beside
|
|
75
|
+
`codex/plan`, and name the branch in the way. Git's own refusal named
|
|
76
|
+
refs and lock files, and `gw add` left an empty directory behind.
|
|
77
|
+
|
|
78
|
+
`/worktrees:ship-it BRANCH ...` ships each named branch from the
|
|
79
|
+
worktree you run it in, switching to each in turn, and creates no
|
|
80
|
+
worktree. A branch checked out in another worktree is reported and
|
|
81
|
+
left alone. In the main checkout, ship-it switches back to the head
|
|
82
|
+
branch after each push.
|
|
83
|
+
|
|
84
|
+
## 0.10.0 - 2026-11-13
|
|
85
|
+
|
|
86
|
+
### Added
|
|
87
|
+
|
|
88
|
+
`gw merge NUMBER --match-head-commit SHA` squashes one GitHub pull
|
|
89
|
+
request after checking its head and CI. It respects merge queues and
|
|
90
|
+
waits up to ten minutes for lower native-stack pull requests and the
|
|
91
|
+
head rewrite. A rewritten head returns `head-moved` at exit 4 without
|
|
92
|
+
submitting. `/worktrees:ship-it` waits for CI on that head and rebuilds
|
|
93
|
+
the message before one retry. `/worktrees:ship-it` always squashes on
|
|
94
|
+
GitHub and GitLab.
|
|
95
|
+
|
|
96
|
+
`gw ci-checks --json` includes `pr.trailers`, preserving full coauthor
|
|
97
|
+
and session trailers once each in commit order. `/worktrees:ship-it`
|
|
98
|
+
uses these trailers for squash messages. Missing or incomplete commit
|
|
99
|
+
lists stop `/worktrees:ship-it`; GitHub reviews with 100 or more commits
|
|
100
|
+
have null trailers.
|
|
101
|
+
|
|
102
|
+
The WHY column of the `gw prune`, `gw remove`, `gw branch status` and
|
|
103
|
+
`gw branch prune` tables puts each reason on its own line: the evidence
|
|
104
|
+
first, then every protection under it. The JSON `why` field is unchanged.
|
|
105
|
+
|
|
106
|
+
### Fixed
|
|
107
|
+
|
|
108
|
+
After the counts, `gw prune` lists every worktree it holds back, one to a
|
|
109
|
+
line with each reason, and leaves out the main checkout; `gw remove` does
|
|
110
|
+
the same for its target. When only `--delete` values hold worktrees back,
|
|
111
|
+
`gw prune` names the command that grants them, keeping the values you
|
|
112
|
+
passed: `gw prune --delete ignored-files makes fix-parser eligible`. The
|
|
113
|
+
list replaces the warning that named unknown worktrees. `gw remove`
|
|
114
|
+
suggests `--keep-branch` only when that flag would make the target
|
|
115
|
+
eligible.
|
|
116
|
+
|
|
117
|
+
When an empty branch or its stashes hold a worktree or a branch back, the
|
|
118
|
+
reason names the value that lifts it: `the branch is empty; pass --delete
|
|
119
|
+
empty` and `its branch has stashes; pass --delete stashes`. Main, master
|
|
120
|
+
and the head branch list only `it is a protected branch`, since no
|
|
121
|
+
`--delete` value frees them.
|
|
122
|
+
|
|
123
|
+
The removal disclosure, the "it holds N ignored path(s)" count and
|
|
124
|
+
`gw prune --json`'s `ignoredPaths` list each ignored path as the pattern
|
|
125
|
+
that ignores it names it, from the top level and sorted by name, with a
|
|
126
|
+
trailing `/` on a directory. A `__pycache__` pattern lists
|
|
127
|
+
`src/pkg/__pycache__/`, where the disclosure read the tracked `src/` as
|
|
128
|
+
ignored and unrecoverable. A pattern for a directory's contents, such as
|
|
129
|
+
`path/to/ignored/*`, lists that directory once. The disclosure ends with a
|
|
130
|
+
`git -C PATH ls-files --others --ignored --exclude-standard` line that
|
|
131
|
+
lists every ignored file, to read before you answer.
|
|
132
|
+
|
|
133
|
+
A branch whose pull request was stacked on another branch read as `unknown`,
|
|
134
|
+
"the request targeted a different branch", after the forge landed it on the
|
|
135
|
+
head branch. `gw prune`, `gw remove`, `gw branch status`, `gw branch prune`
|
|
136
|
+
and `gw fast-forward` now count such a request as proof when its merge
|
|
137
|
+
commit is on the head branch's first-parent history, and the reason names
|
|
138
|
+
the branch it targeted.
|
|
139
|
+
|
|
140
|
+
`gw fast-forward` takes GitHub's rewrite of a stacked pull request's
|
|
141
|
+
branch instead of replaying the same commits locally, so the push after
|
|
142
|
+
it no longer overwrites GitHub's commits and `--force-if-includes` no
|
|
143
|
+
longer refuses it. Run straight after the pull request below merges, it
|
|
144
|
+
waits up to a minute for that rewrite. `--json` names the remote copy it
|
|
145
|
+
took in `adopted`.
|
|
146
|
+
|
|
147
|
+
`gw list` and `gw l` list worktrees without syncing first: they no longer
|
|
148
|
+
fetch every remote and query the forge when a sync is due, and print no
|
|
149
|
+
`Head:`, `Last sync:` or `Never synced:` line. `gw list --json` still
|
|
150
|
+
carries `head` and `lastSync` from the last sync.
|
|
151
|
+
|
|
152
|
+
`/worktrees:ship-it` writes the release note with `release:write` when the
|
|
153
|
+
`release` plugin is installed. It looked for the `release-notes` plugin,
|
|
154
|
+
which `release` replaced, so it skipped the note.
|
|
155
|
+
|
|
20
156
|
## 0.9.0 - 2026-11-09
|
|
21
157
|
|
|
22
158
|
### Removed
|