git-worktrees 0.14.0__tar.gz → 0.15.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.
Files changed (164) hide show
  1. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.github/workflows/publish.yml +4 -8
  2. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.releasetools.yaml +6 -3
  3. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/AGENTS.md +21 -5
  4. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/CHANGELOG.md +28 -0
  5. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/PKG-INFO +14 -8
  6. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/README.md +13 -7
  7. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/completions/gw.fish +7 -0
  8. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/conf.d/worktrees.fish +1 -1
  9. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/DEVELOPMENT.md +7 -10
  10. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/REFERENCE.md +13 -2
  11. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/commands/push.md +77 -6
  12. git_worktrees-0.15.0/docs/commands/update.md +30 -0
  13. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/.claude-plugin/plugin.json +1 -1
  14. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/.codex-plugin/plugin.json +1 -1
  15. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/README.md +18 -3
  16. git_worktrees-0.15.0/plugin/evals/ship-it-release/graders/actions.md +19 -0
  17. git_worktrees-0.15.0/plugin/evals/ship-it-release/prompt.md +29 -0
  18. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/plugin.json +1 -1
  19. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/describe-pr/SKILL.md +2 -2
  20. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/describe-pr/format.md +3 -1
  21. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/preflight/rules.json +2 -0
  22. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/preflight/worktrees.rules +10 -0
  23. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/ship-it/SKILL.md +156 -21
  24. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/ship-it/rights.md +26 -1
  25. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/pyproject.toml +1 -1
  26. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/cli.py +68 -13
  27. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/fast_forward.py +3 -2
  28. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/git.py +2 -0
  29. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/push.py +157 -10
  30. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/repo.py +50 -0
  31. git_worktrees-0.15.0/src/worktrees/update.py +226 -0
  32. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/audit_schema.py +19 -0
  33. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_audit.py +38 -0
  34. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_completions.py +2 -0
  35. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_fast_forward.py +10 -1
  36. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_gates.py +3 -2
  37. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_plugin.py +122 -4
  38. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_push.py +69 -0
  39. git_worktrees-0.15.0/tests/test_push_tag.py +372 -0
  40. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_shims.py +20 -2
  41. git_worktrees-0.15.0/tests/test_update.py +308 -0
  42. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/uv.lock +2 -2
  43. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/completions/_gw +11 -0
  44. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/worktrees.plugin.zsh +4 -2
  45. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.agents/plugins/marketplace.json +0 -0
  46. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.claude/settings.json +0 -0
  47. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.claude-plugin/marketplace.json +0 -0
  48. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.codex/config.toml +0 -0
  49. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.github/workflows/codeql.yml +0 -0
  50. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.github/workflows/testpypi.yml +0 -0
  51. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.github/workflows/tests.yml +0 -0
  52. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.gitignore +0 -0
  53. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.pre-commit-config.yaml +0 -0
  54. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/.python-version +0 -0
  55. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/LICENSE +0 -0
  56. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/Makefile +0 -0
  57. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/completions/worktrees.fish +0 -0
  58. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/BENCHMARK.md +0 -0
  59. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/commands/add.md +0 -0
  60. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/commands/branch-create.md +0 -0
  61. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/commands/branch-prune.md +0 -0
  62. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/commands/branch-status.md +0 -0
  63. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/commands/ci-checks.md +0 -0
  64. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/commands/fast-forward.md +0 -0
  65. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/commands/list.md +0 -0
  66. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/commands/merge.md +0 -0
  67. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/commands/preflight.md +0 -0
  68. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/commands/stack-link.md +0 -0
  69. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/docs/plans/2026-11-05-worktree-pruning-design.md +0 -0
  70. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gw.fish +0 -0
  71. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwa.fish +0 -0
  72. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwbc.fish +0 -0
  73. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwbp.fish +0 -0
  74. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwbs.fish +0 -0
  75. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwff.fish +0 -0
  76. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwl.fish +0 -0
  77. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwm.fish +0 -0
  78. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwp!.fish +0 -0
  79. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwp.fish +0 -0
  80. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwpa!.fish +0 -0
  81. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwpa.fish +0 -0
  82. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwpu.fish +0 -0
  83. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwr!.fish +0 -0
  84. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwr.fish +0 -0
  85. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gwrk!.fish +0 -0
  86. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/functions/gws.fish +0 -0
  87. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/hatch_build.py +0 -0
  88. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/hooks/codex.json +0 -0
  89. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/hooks/hooks.json +0 -0
  90. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/session.md +0 -0
  91. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/ci-checks/SKILL.md +0 -0
  92. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/fast-forward/SKILL.md +0 -0
  93. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/preflight/SKILL.md +0 -0
  94. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/preflight/agents/openai.yaml +0 -0
  95. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/preflight/config.toml +0 -0
  96. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/preflight/merge_codex_rules.py +0 -0
  97. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/preflight/project.json +0 -0
  98. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/plugin/skills/prune/SKILL.md +0 -0
  99. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/renovate.json +0 -0
  100. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/scripts/README.md +0 -0
  101. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/scripts/benchmark.py +0 -0
  102. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/scripts/bump_version.py +0 -0
  103. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/scripts/verify-publish.bash +0 -0
  104. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/__init__.py +0 -0
  105. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/audit.py +0 -0
  106. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/branch_cli.py +0 -0
  107. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/branch_forge.py +0 -0
  108. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/branches.py +0 -0
  109. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/ci.py +0 -0
  110. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/errors.py +0 -0
  111. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/forge.py +0 -0
  112. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/layout.py +0 -0
  113. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/merged.py +0 -0
  114. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/new_branch.py +0 -0
  115. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/pick.py +0 -0
  116. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/pr_merge.py +0 -0
  117. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/preflight.py +0 -0
  118. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/progress.py +0 -0
  119. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/prune.py +0 -0
  120. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/render.py +0 -0
  121. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/stack_link.py +0 -0
  122. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/sync.py +0 -0
  123. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/verdicts.py +0 -0
  124. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/src/worktrees/worktree.py +0 -0
  125. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/conftest.py +0 -0
  126. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_assessment.py +0 -0
  127. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_benchmark.py +0 -0
  128. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_branch_forge.py +0 -0
  129. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_branches.py +0 -0
  130. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_ci.py +0 -0
  131. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_cli.py +0 -0
  132. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_command_defaults.py +0 -0
  133. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_fixture.py +0 -0
  134. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_forge.py +0 -0
  135. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_git_records.py +0 -0
  136. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_new_branch.py +0 -0
  137. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_partial_clone.py +0 -0
  138. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_path_boundaries.py +0 -0
  139. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_pr_merge.py +0 -0
  140. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_preflight.py +0 -0
  141. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_removal.py +0 -0
  142. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_render.py +0 -0
  143. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_spec.py +0 -0
  144. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_stack_link.py +0 -0
  145. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_sync.py +0 -0
  146. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_version.py +0 -0
  147. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/tests/test_worktree.py +0 -0
  148. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gw +0 -0
  149. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwa +0 -0
  150. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwbc +0 -0
  151. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwbp +0 -0
  152. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwbs +0 -0
  153. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwff +0 -0
  154. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwl +0 -0
  155. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwm +0 -0
  156. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwp +0 -0
  157. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwp! +0 -0
  158. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwpa +0 -0
  159. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwpa! +0 -0
  160. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwpu +0 -0
  161. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwr +0 -0
  162. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwr! +0 -0
  163. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gwrk! +0 -0
  164. {git_worktrees-0.14.0 → git_worktrees-0.15.0}/zsh/plugins/worktrees/functions/gws +0 -0
@@ -1,5 +1,5 @@
1
1
  name: Publish
2
- run-name: Release ${{ inputs.version && format('v{0}', inputs.version) || github.ref_name }}
2
+ run-name: Release ${{ inputs.version && format('v{0} at {1}', inputs.version, inputs.commit) || github.ref_name }}
3
3
 
4
4
  # Renaming this file breaks publishing. PyPI's Trusted Publishing matches a
5
5
  # request against the repository, this workflow's FILENAME and the environment,
@@ -8,13 +8,9 @@ run-name: Release ${{ inputs.version && format('v{0}', inputs.version) || github
8
8
  # build -> tag -> publish -> release -> list
9
9
  # \-> verify
10
10
  #
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.
11
+ # The configured release dispatch names the version and its merge commit.
12
+ # The tag job creates the tag after build passes. A pushed version tag also
13
+ # starts this workflow.
18
14
  #
19
15
  # There is no TestPyPI rehearsal. testpypi.yml publishes every commit on main
20
16
  # there as <version>.post<epoch> and installs it back, so the tree this tag
@@ -22,7 +22,10 @@ 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
+ # The dispatch names the release commit. publish.yml creates its tag.
26
+ trigger: dispatch
27
+ tagging: workflow
28
28
  registry: https://pypi.org/pypi/git-worktrees/{version}/json
29
+
30
+ conventions:
31
+ except: [tag-version-to-release]
@@ -169,8 +169,13 @@ leaves it in progress, at exit 1 with the stopped commit and files in
169
169
  only fast-forwards.
170
170
  [fast-forward](docs/commands/fast-forward.md) gives the order of the checks.
171
171
 
172
- `gw push` fetches the default remote on every run and pushes the branch
173
- checked out: `--set-upstream` when the remote lacks it, otherwise
172
+ `gw update` merges the fetched review target into a clean branch. It records the
173
+ merge it started so `--continue` can finish it after a conflict. The head branch
174
+ uses `gw fast-forward`. [Update](docs/commands/update.md) describes the refusals.
175
+
176
+ `gw push --ff-only` fetches and requires the remote tip to be an ancestor
177
+ of the branch, then makes a normal push. The default `gw push` fetches the
178
+ default remote on every run and pushes the branch checked out: `--set-upstream` when the remote lacks it, otherwise
174
179
  `--force-with-lease=refs/heads/BRANCH:SHA` on the sha the fetch read.
175
180
  Two checks come first. `push.only_there` lists the remote copy's commits
176
181
  that neither the branch nor the head ref holds by sha or patch-id, outside
@@ -185,6 +190,14 @@ refusal nothing lifts, and names `gw fast-forward`. `--force-if-includes` is not
185
190
  ignores it beside an explicit lease, and the first check asks what it
186
191
  would. [Push](docs/commands/push.md) has the outputs.
187
192
 
193
+ `gw push --tag NAME` calls `push.push_tag` without the branch checks or a fetch.
194
+ It captures the raw local tag object and pins the default remote's single push
195
+ URL for both inspection and publication. Mirror remotes are refused. An identical
196
+ remote object succeeds without pushing; a different object is refused. The push
197
+ uses the captured object ID as its source and verifies the remote tag afterwards.
198
+ `--no-follow-tags` and `--recurse-submodules=no` limit publication to that tag.
199
+ `--tag` is mutually exclusive with `--replace` and `--ff-only`.
200
+
188
201
  ## Where shell code goes
189
202
 
190
203
  Fisher copies `functions/`, `completions/` and `conf.d/` from the repository
@@ -249,13 +262,13 @@ assumes a plugin root or a checkout at a known path.
249
262
  | `ci-checks` | `gw ci-checks --json`, `--wait` to wait without polling |
250
263
  | `describe-pr` | checks a review's title and body against its diff, and edits them |
251
264
  | `prune` | `gw prune --json` and `gw branch status --json`, then the removals approved |
252
- | `ship-it` | commits, `fast-forward`, `gw push`, `gh pr create`, `gw stack-link` for a stacked branch on GitHub, `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 |
265
+ | `ship-it` | ships branches or numbered reviews through CI and merge, then syncs the head checkout. `--update=merge` selects `gw update` and `gw push --ff-only`. Repositories with `release.tagging: after-merge` use the installed `release:tag` for exact version tags on confirmed merge SHAs. |
253
266
  | `preflight` | `gw preflight --json`, then, after asking, installs the current client's permission rules at user or project scope; project scope also writes the plugin setup in `.claude/settings.json` and `.codex/config.toml` |
254
267
 
255
268
  `describe-pr` and `ship-it` share `describe-pr/format.md`: the
256
269
  review's title and body are the squash commit's subject and body, so one set
257
270
  of rules writes both. When the agent has the technical-writer plugin's
258
- `pr-description` skill, both write the title and the body in that skill's
271
+ `write-pr-description` skill, both write the title and the body in that skill's
259
272
  format, and `format.md` keeps what to preserve, the auto-resolution block
260
273
  and the four ways a description is wrong. `tests/test_plugin.py` holds every skill's
261
274
  `allowed-tools` to reads, `gw sync` and `gw branch create`: no pattern
@@ -286,6 +299,9 @@ skill's commands to never writing `--force`, `--admin`, `--auto`,
286
299
  push forms in `preflight/rules.json` and `gh api` calls that name a merge;
287
300
  Codex denies every direct `git push` and `gh api` command, regardless of
288
301
  trailing arguments.
302
+ The release plugin's explicit preflight supplies its own installed-path publisher
303
+ permission. Worktrees grants no general Node permission. `--hold-merge` holds
304
+ publication, and a tag failure preserves the review number and merge SHA for retry.
289
305
  `rights.md` names the limits of prefix rules. A Claude Code deny rule
290
306
  matches past a leading assignment, so the conflict loop
291
307
  continues a rebase with `gw fast-forward --continue`.
@@ -542,7 +558,7 @@ when eight threads are asking at once.
542
558
  default first, updates the default remote's HEAD and queries the forge for
543
559
  every local branch tip on eight threads. Every other command but
544
560
  `gw version`, `gw list`, `gw ci-checks`, `gw merge`, `gw stack-link`,
545
- `gw preflight`, `gw fast-forward`, `gw push`, help and completion runs the
561
+ `gw preflight`, `gw fast-forward`, `gw update`, `gw push`, help and completion runs the
546
562
  same `sync.run` first when
547
563
  `sync.due` says so: the default remote's refs time is null or at least
548
564
  `WORKTREES_SYNC_TTL` seconds old, 300 by default. The forge time is not read,
@@ -17,6 +17,34 @@ 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.15.0 - 2026-11-30
21
+
22
+ ### Added
23
+
24
+ `gw push --tag NAME` publishes one existing local tag to the default remote, including prefixed tags. It preserves annotations and signatures, refuses conflicting remote tags, and verifies publication. Tag publication requires Git 2.46 or newer.
25
+
26
+ `gw update` merges the fetched review target into the current branch.
27
+ `ship-it --update=merge` uses it with `gw push --ff-only` to preserve branch commits.
28
+
29
+ `ship-it` publishes exact signed version tags for confirmed merges in repositories that opt into `after-merge`. A resumed publication uses the original merge commits.
30
+
31
+ ### Changed
32
+
33
+ The `ship-it` skill runs branch and worktree cleanup only when requested.
34
+
35
+ ### Fixed
36
+
37
+ Branch pushes leave annotated tags local even when Git enables `push.followTags`.
38
+
39
+ The zsh plugin loads its functions at startup, so `gw` works in Claude Code's copied shells without `fpath`. `ship-it` calls `gw fast-forward` in its final step, matching the configured permission rule.
40
+
41
+ `describe-pr` and `ship-it` load technical-writer's `write-pr-description`
42
+ skill when it is installed, and write the pull request's title and body in
43
+ its format.
44
+
45
+ `describe-pr` and `ship-it` keep the title and body of a release pull
46
+ request, titled `Release <version>`, exactly as written.
47
+
20
48
  ## 0.14.0 - 2026-11-22
21
49
 
22
50
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: git-worktrees
3
- Version: 0.14.0
3
+ Version: 0.15.0
4
4
  Summary: Git worktree commands that refuse to lose work.
5
5
  Project-URL: Bug reports, https://github.com/MihaiBojin/worktrees/issues/new
6
6
  Project-URL: Source, https://github.com/MihaiBojin/worktrees
@@ -62,7 +62,7 @@ can contain unreleased changes.
62
62
  With [Fisher](https://github.com/jorgebucaran/fisher) installed, run:
63
63
 
64
64
  ```fish
65
- fisher install MihaiBojin/worktrees@v0.14.0
65
+ fisher install MihaiBojin/worktrees@v0.15.0
66
66
  ```
67
67
 
68
68
  To change release, edit the tag in `$__fish_config_dir/fish_plugins`, then
@@ -74,7 +74,7 @@ With [Antidote](https://antidote.sh/) installed, add this line to its plugin
74
74
  list, normally `~/.zsh_plugins.txt`, and open a new shell:
75
75
 
76
76
  ```text
77
- MihaiBojin/worktrees branch:v0.14.0 path:zsh/plugins/worktrees
77
+ MihaiBojin/worktrees branch:v0.15.0 path:zsh/plugins/worktrees
78
78
  ```
79
79
 
80
80
  Completion needs `compinit`. If your shell configuration does not run it,
@@ -99,8 +99,8 @@ Run `gw --help`. With matching command and shell releases, its output
99
99
  includes:
100
100
 
101
101
  ```console
102
- worktrees 0.14.0: git worktree commands that refuse to lose work
103
- The shell plugin here is 0.14.0, the same release as these commands.
102
+ worktrees 0.15.0: git worktree commands that refuse to lose work
103
+ The shell plugin here is 0.15.0, the same release as these commands.
104
104
  ```
105
105
 
106
106
  Upgrade the commands and the shell plugin together. For development from a
@@ -154,7 +154,8 @@ describes its flags. The guides cover these tasks:
154
154
  | [`gw branch prune [NAME ...]`](docs/commands/branch-prune.md) | Delete eligible branches without worktrees |
155
155
  | [`gw branch create NAME`](docs/commands/branch-create.md) | Start a branch in the current checkout |
156
156
  | [`gw fast-forward [NAME]`](docs/commands/fast-forward.md) | Update a branch, or continue from a finished branch on a new one |
157
- | [`gw push`](docs/commands/push.md) | Push with checks for remote work and previously merged commits |
157
+ | [`gw update`](docs/commands/update.md) | Merge the fetched review target into a clean branch |
158
+ | [`gw push [--tag NAME]`](docs/commands/push.md) | Push a checked branch or publish one existing tag |
158
159
  | [`gw ci-checks [NUMBER]`](docs/commands/ci-checks.md) | Read or wait for checks on a GitHub pull request or GitLab merge request |
159
160
  | [`gw merge NUMBER...`](docs/commands/merge.md) | Squash checked GitHub pull requests, including native stacks |
160
161
  | [`gw stack-link NUMBER NUMBER ...`](docs/commands/stack-link.md) | Link GitHub pull requests into a native stack |
@@ -251,8 +252,11 @@ syncing.
251
252
 
252
253
  `gw fast-forward` fetches the default remote when sync is due and reads
253
254
  fresh request evidence when needed. It can fetch again when a merged
254
- request names a commit missing locally. `gw push` fetches on every run.
255
+ request names a commit missing locally. Branch pushes fetch on every run.
255
256
  Both refuse when a required fetch or request query fails.
257
+ `gw push --tag release/v1.2.3` reads the exact tag at the push destination
258
+ and publishes the local tag when absent. It refuses a different remote object.
259
+ Tag publication reads remote refs without fetching them.
256
260
 
257
261
  Set `WORKTREES_OFFLINE=1` to prevent network access. Local assessment and
258
262
  navigation still work; commands that require the network refuse. See
@@ -309,7 +313,9 @@ rules that apply to them.
309
313
  The [agent plugin](plugin/README.md) provides six skills for Claude Code
310
314
  and Codex. They update branches through conflicts, inspect checks, maintain
311
315
  pull request descriptions, ship changes through merge, prune approved
312
- worktrees and configure permissions.
316
+ worktrees and configure permissions. In repositories that opt into
317
+ `after-merge`, shipping includes the exact signed tags for version changes
318
+ in confirmed merges. See the [shipping guide](plugin/README.md#ship-it).
313
319
 
314
320
  Install the plugin from the `mihaibojin` marketplace as its README
315
321
  describes, then run `gw preflight` inside each repository. The
@@ -35,7 +35,7 @@ can contain unreleased changes.
35
35
  With [Fisher](https://github.com/jorgebucaran/fisher) installed, run:
36
36
 
37
37
  ```fish
38
- fisher install MihaiBojin/worktrees@v0.14.0
38
+ fisher install MihaiBojin/worktrees@v0.15.0
39
39
  ```
40
40
 
41
41
  To change release, edit the tag in `$__fish_config_dir/fish_plugins`, then
@@ -47,7 +47,7 @@ With [Antidote](https://antidote.sh/) installed, add this line to its plugin
47
47
  list, normally `~/.zsh_plugins.txt`, and open a new shell:
48
48
 
49
49
  ```text
50
- MihaiBojin/worktrees branch:v0.14.0 path:zsh/plugins/worktrees
50
+ MihaiBojin/worktrees branch:v0.15.0 path:zsh/plugins/worktrees
51
51
  ```
52
52
 
53
53
  Completion needs `compinit`. If your shell configuration does not run it,
@@ -72,8 +72,8 @@ Run `gw --help`. With matching command and shell releases, its output
72
72
  includes:
73
73
 
74
74
  ```console
75
- worktrees 0.14.0: git worktree commands that refuse to lose work
76
- The shell plugin here is 0.14.0, the same release as these commands.
75
+ worktrees 0.15.0: git worktree commands that refuse to lose work
76
+ The shell plugin here is 0.15.0, the same release as these commands.
77
77
  ```
78
78
 
79
79
  Upgrade the commands and the shell plugin together. For development from a
@@ -127,7 +127,8 @@ describes its flags. The guides cover these tasks:
127
127
  | [`gw branch prune [NAME ...]`](docs/commands/branch-prune.md) | Delete eligible branches without worktrees |
128
128
  | [`gw branch create NAME`](docs/commands/branch-create.md) | Start a branch in the current checkout |
129
129
  | [`gw fast-forward [NAME]`](docs/commands/fast-forward.md) | Update a branch, or continue from a finished branch on a new one |
130
- | [`gw push`](docs/commands/push.md) | Push with checks for remote work and previously merged commits |
130
+ | [`gw update`](docs/commands/update.md) | Merge the fetched review target into a clean branch |
131
+ | [`gw push [--tag NAME]`](docs/commands/push.md) | Push a checked branch or publish one existing tag |
131
132
  | [`gw ci-checks [NUMBER]`](docs/commands/ci-checks.md) | Read or wait for checks on a GitHub pull request or GitLab merge request |
132
133
  | [`gw merge NUMBER...`](docs/commands/merge.md) | Squash checked GitHub pull requests, including native stacks |
133
134
  | [`gw stack-link NUMBER NUMBER ...`](docs/commands/stack-link.md) | Link GitHub pull requests into a native stack |
@@ -224,8 +225,11 @@ syncing.
224
225
 
225
226
  `gw fast-forward` fetches the default remote when sync is due and reads
226
227
  fresh request evidence when needed. It can fetch again when a merged
227
- request names a commit missing locally. `gw push` fetches on every run.
228
+ request names a commit missing locally. Branch pushes fetch on every run.
228
229
  Both refuse when a required fetch or request query fails.
230
+ `gw push --tag release/v1.2.3` reads the exact tag at the push destination
231
+ and publishes the local tag when absent. It refuses a different remote object.
232
+ Tag publication reads remote refs without fetching them.
229
233
 
230
234
  Set `WORKTREES_OFFLINE=1` to prevent network access. Local assessment and
231
235
  navigation still work; commands that require the network refuse. See
@@ -282,7 +286,9 @@ rules that apply to them.
282
286
  The [agent plugin](plugin/README.md) provides six skills for Claude Code
283
287
  and Codex. They update branches through conflicts, inspect checks, maintain
284
288
  pull request descriptions, ship changes through merge, prune approved
285
- worktrees and configure permissions.
289
+ worktrees and configure permissions. In repositories that opt into
290
+ `after-merge`, shipping includes the exact signed tags for version changes
291
+ in confirmed merges. See the [shipping guide](plugin/README.md#ship-it).
286
292
 
287
293
  Install the plugin from the `mihaibojin` marketplace as its README
288
294
  describes, then run `gw preflight` inside each repository. The
@@ -73,6 +73,13 @@ complete -c gw -n '__worktrees_on fast-forward ff' -s v -l verbose -d 'print eve
73
73
  complete -c gw -n '__worktrees_on fast-forward ff' -l explain -d 'print every git command and exit'
74
74
  complete -c gw -n '__worktrees_on fast-forward ff' -s h -l help -d 'show the help and exit'
75
75
 
76
+ complete -c gw -n '__worktrees_on update' -l continue -d 'commit the resolved merge'
77
+ complete -c gw -n '__worktrees_on update' -l abort -d 'restore the pre-update checkout'
78
+ complete -c gw -n '__worktrees_on update' -l json -d 'the result as data'
79
+ complete -c gw -n '__worktrees_on update' -s h -l help -d 'show the help and exit'
80
+
81
+ complete -c gw -n '__worktrees_on push' -l tag -x -d 'publish one existing local tag'
82
+ complete -c gw -n '__worktrees_on push' -l ff-only -d 'require a fast-forward push'
76
83
  complete -c gw -n '__worktrees_on push' -l replace -d 'push over commits only the remote copy holds'
77
84
  complete -c gw -n '__worktrees_on push' -l json -d 'the result as data'
78
85
  complete -c gw -n '__worktrees_on push' -s q -l quiet -d 'omit the summary and progress'
@@ -4,4 +4,4 @@
4
4
  # The release this plugin came from, which `gw --help` and `gw version` compare
5
5
  # with their own. Exported, because the environment is all a binary can see
6
6
  # of the shell that started it.
7
- set -gx WORKTREES_PLUGIN_VERSION 0.14.0
7
+ set -gx WORKTREES_PLUGIN_VERSION 0.15.0
@@ -195,8 +195,8 @@ for a remote on disk.
195
195
 
196
196
  That does the whole of it: cut `release/v0.2.0` from `origin/main`,
197
197
  `scripts/bump_version.py 0.2.0`, open the pull request, wait for its checks, squash-merge,
198
- wait for main's own run on the merged commit, and only then tag. The tag lands
199
- on a commit already proved green, so it never has to move.
198
+ wait for main's own run on the merged commit, then dispatch `publish.yml` for
199
+ that version and commit. Its `tag` job creates the tag after the build passes.
200
200
 
201
201
  In Codex the same release is `$release:release 0.2.0`, and in either client
202
202
  asking to cut a release of 0.2.0 runs it too.
@@ -249,14 +249,12 @@ not contain a supported manifest`.
249
249
  and `build` refuses a tag whose version has no section, before anything is
250
250
  published. Nothing is generated from pull request titles.
251
251
 
252
- By hand it is the same four commands:
252
+ For a manual dispatch, use the full SHA of the confirmed release merge:
253
253
 
254
254
  ```console
255
255
  python3 scripts/bump_version.py 0.2.0 # uv version, then the plugins and README
256
256
  # open a pull request, review it, merge it
257
- git switch main && git pull
258
- git tag -a v0.2.0 -m v0.2.0
259
- git push origin v0.2.0
257
+ gh workflow run publish.yml --ref main -f version=0.2.0 -f commit=FULL_MERGE_SHA
260
258
  ```
261
259
 
262
260
  `uv version` alone is not the bump. It rewrites `pyproject.toml` and
@@ -280,10 +278,9 @@ ERROR: tag(s) at HEAD: v9.9.9
280
278
  ERROR: version given: 0.1.0
281
279
  ```
282
280
 
283
- `release.trigger` lists `tag` first, so the release pushes the signed tag
284
- and the push starts `publish.yml`. `dispatch` starts it too: the release runs
285
- it with the version and the release commit, and its `tag` job creates the tag
286
- on that commit.
281
+ `release.tagging: workflow` assigns tag creation to CI. An explicit release
282
+ dispatches `publish.yml` with the version and the release commit. The workflow
283
+ also accepts version-tag pushes. Shipping a pull request does not dispatch it.
287
284
 
288
285
  ```
289
286
  build ──> tag ──> publish ──> release ──> list
@@ -16,6 +16,7 @@ output streams. [The README](../README.md) covers installation and a tour.
16
16
  | `gw select-main`, `gw main`, `gw m` | `gwm` | [select-main](commands/list.md#select-main) |
17
17
  | `gw remove`, `gw rm` | `gwr`, `gwr!` | [README](../README.md#assess-and-remove), [protections](#protections-and-permissions), [deletion](#deletion-and-recovery) |
18
18
  | `gw fast-forward`, `gw ff` | `gwff` | [fast-forward](commands/fast-forward.md) |
19
+ | `gw update` | | [update](commands/update.md) |
19
20
  | `gw push` | `gwpu` | [push](commands/push.md) |
20
21
  | `gw ci-checks`, `gw ci` | | [ci-checks](commands/ci-checks.md) |
21
22
  | `gw merge` | | [merge](commands/merge.md) |
@@ -435,11 +436,21 @@ objects; and `retargeted` and `rescued`, objects. It adds
435
436
  `previous_full_sha` and `full_sha`, strings that are empty when the short
436
437
  one no longer resolves, and `restore` and `undo`.
437
438
 
438
- `push.outcome`, when `gw push` returned after its fetch, carries the
439
+ `update.outcome` records `operation` as `merge`, the `result`, `branch`
440
+ and conflicting `paths`. The full commit IDs identify the starting tip
441
+ (`previous`), the fetched base (`target`) and the resulting tip (`sha`).
442
+
443
+ `push.outcome` records `ff_only` for the push mode. The event, when `gw push` returned after its fetch, carries the
439
444
  fields of [its `--json` result](commands/push.md): `branch`, `remote`,
440
445
  `pushed`, `previous` and `refused`, strings. It adds `replace`, true when
441
446
  `--replace` was given.
442
447
 
448
+ `push-tag.outcome` records the [tag publication result](commands/push.md#tag-json-and-exit-codes).
449
+ Its string fields are `tag`, `remote`, `destination`, `object`, `pushed`,
450
+ `previous` and `refused`. It is emitted after inspecting the remote, including
451
+ when that inspection fails. Local tag and remote configuration refusals happen
452
+ before a result exists.
453
+
443
454
  `merge.outcome`, one for each merge call `gw merge` made or refused, carries
444
455
  `number`, a number, `head`, the SHA it was asked to merge at, and the fields
445
456
  of [its `--json` result](commands/merge.md): `status` and `message`,
@@ -571,7 +582,7 @@ hold whatever `WORKTREES_SYNC_TTL` says, so a longer TTL lets the age
571
582
  warning print before the next sync is due.
572
583
 
573
584
  Every command except `gw sync`, `gw version`, `gw list`, `gw fast-forward`,
574
- `gw push`, `gw ci-checks`, `gw merge`, `gw stack-link`, `gw preflight`, help and completion runs sync first when one is due: the default remote's
585
+ `gw push`, `gw update`, `gw ci-checks`, `gw merge`, `gw stack-link`, `gw preflight`, help and completion runs sync first when one is due: the default remote's
575
586
  refs time is null, or at least `WORKTREES_SYNC_TTL` seconds old. The TTL is 300 when the variable is unset or
576
587
  empty, takes whole seconds with `0` meaning every command, and anything else
577
588
  is a usage error at exit 2. The forge time is not read. Without a default
@@ -1,22 +1,29 @@
1
1
  # worktrees push
2
2
 
3
3
  `gw push` sends the branch you stand on to the default remote, and the
4
- shell plugin's `gwpu` runs it.
4
+ shell plugin's `gwpu` runs it. `gw push --tag NAME` publishes one existing
5
+ local tag to that remote. Both forms require network access.
5
6
 
6
7
  ```console
7
8
  gw push
8
9
  gw push --json
9
10
  gw push --replace
11
+ gw push --tag release/v1.2.3 --json
10
12
  ```
11
13
 
12
- It fetches the default remote first, whatever `WORKTREES_SYNC_TTL` says,
14
+ A branch push fetches the default remote first, whatever `WORKTREES_SYNC_TTL` says,
13
15
  since both checks below judge the remote copy as it is now. A failed fetch
14
16
  is a refusal. A branch the remote lacks is pushed with
15
- `git push --set-upstream REMOTE BRANCH`. One the remote has is pushed with
17
+ `git push --no-follow-tags --set-upstream REMOTE BRANCH`. One the remote has is pushed with
16
18
  `--force-with-lease=refs/heads/BRANCH:SHA`, where `SHA` is the commit the
17
19
  fetch read, so a push that lands after the remote moved again is refused by
18
20
  git. A branch the remote already holds at the same commit pushes nothing.
19
21
 
22
+ `gw push --ff-only` requires the fetched remote tip to be an ancestor of
23
+ the local branch. It applies both checks below and sends an ordinary push.
24
+ Git rejects an incompatible remote change that arrives after the fetch.
25
+ The parser permits only one of `--ff-only`, `--replace` and `--tag NAME`.
26
+
20
27
  ## Two checks
21
28
 
22
29
  The remote copy may hold commits the branch lacks. Each commit the copy has
@@ -86,13 +93,13 @@ of them is merged.
86
93
 
87
94
  ## Refusals
88
95
 
89
- The head branch, a detached HEAD, a repository with no default remote and a
90
- head ref that does not resolve are refused before the fetch.
96
+ A branch push refuses the head branch, a detached HEAD, a repository with no
97
+ default remote and a head ref that does not resolve before the fetch.
91
98
  `WORKTREES_OFFLINE` refuses it too, as it does `gw sync`.
92
99
 
93
100
  ## JSON
94
101
 
95
- `--json` prints an object with `head`, `lastSync` and these fields:
102
+ A branch push with `--json` prints an object with `head`, `lastSync` and these fields:
96
103
 
97
104
  | field | holds |
98
105
  | --- | --- |
@@ -107,3 +114,67 @@ the two checks, with the JSON above and the commits on stderr, or one made
107
114
  before the fetch, with nothing on stdout. Exit 1 is a push git rejected,
108
115
  with the JSON above. `-q` keeps the JSON and every failure and drops the
109
116
  summary line and the progress.
117
+
118
+
119
+ ## Publish one tag
120
+
121
+ ```console
122
+ gw push --tag release/v1.2.3 --json
123
+ ```
124
+
125
+ `--tag` requires Git 2.46 or newer. `NAME` is an exact local tag name,
126
+ including any prefix. The tag must exist
127
+ before the command runs. Publication works from the head branch or a detached
128
+ HEAD and does not require a clean working tree. The command captures the raw
129
+ object ID, preserving an annotated tag's message and signature. It also accepts
130
+ lightweight tags. Creating and verifying a release tag belongs to the release
131
+ workflow.
132
+
133
+ The command selects the default remote and requires exactly one push destination.
134
+ It refuses mirror remotes. It pins the destination for the remote reads and the
135
+ push, including when the fetch URL differs. It reads the exact remote tag
136
+ without fetching or changing local tags.
137
+
138
+ | Remote tag | Result |
139
+ | --- | --- |
140
+ | Absent | Push the captured object to `refs/tags/NAME` and verify the remote object |
141
+ | Same object ID | Succeed without a push |
142
+ | Different object ID | Refuse without changing either tag |
143
+
144
+ Two annotated tags that point at the same commit can have different object IDs.
145
+ They conflict. A concurrent remote creation can also cause Git to reject the
146
+ push. The command never forces a tag update. It sends no branches or additional
147
+ tags, even when `push.followTags` or remote push refspecs are configured.
148
+ Submodule pushes are disabled for this operation.
149
+
150
+ Git hooks remain enabled. The pre-push hook receives the remote name and the
151
+ pinned URL. Its source-ref field is `OBJECT^{object}`, an expression for the captured
152
+ object that cannot name a branch. Changing the local
153
+ tag during that hook cannot change the transmitted object.
154
+
155
+ ### Tag JSON and exit codes
156
+
157
+ `--json` includes `head` and `lastSync`, plus these fields:
158
+
159
+ | field | holds |
160
+ | --- | --- |
161
+ | `tag` | the requested tag name |
162
+ | `remote` | the default remote name |
163
+ | `destination` | its resolved push URL |
164
+ | `object` | the captured local object ID, without peeling an annotated tag |
165
+ | `pushed` | the object confirmed at the remote after a push; empty otherwise |
166
+ | `previous` | the remote object before the push; empty when absent |
167
+ | `refused` | `tag-conflict`, `remote-unreadable`, `publication-unconfirmed`, Git's rejection reason, or empty on success |
168
+
169
+ Exit 0 means the remote holds the requested object, either from this push or
170
+ already present. Exit 3 means a precondition failed. Invalid or missing tags,
171
+ symbolic tag refs and unsuitable remote configuration fail before the JSON
172
+ result exists. A conflicting or unreadable remote tag includes that result.
173
+
174
+ Exit 1 means the push failed or publication could not be confirmed.
175
+ The command checks the remote even when Git reports a push error. If the tag
176
+ is present, `pushed` contains its object ID and `refused` reports that publication
177
+ succeeded despite the error. A lost
178
+ connection during verification can leave the tag published with `pushed` empty
179
+ and `refused: "publication-unconfirmed"`. Check the remote before retrying.
180
+ `-q` suppresses the summary and progress while retaining JSON and failures.
@@ -0,0 +1,30 @@
1
+ # worktrees update
2
+
3
+ `gw update` merges the fetched review target into the checked-out branch.
4
+ It requires a clean checkout and retains the branch's existing commits.
5
+ It refuses a merge that would overwrite an ignored file, including a path
6
+ that differs only by case on a case-insensitive filesystem.
7
+ The head branch uses `gw fast-forward`.
8
+
9
+ ```console
10
+ gw update --json
11
+ gw update --continue --json
12
+ gw update --abort --json
13
+ ```
14
+
15
+ An open review uses the fetched tip of its target, including a release
16
+ branch without a review of its own. A branch
17
+ without a review uses the remote head branch. A finished parent can be
18
+ retargeted when its fetched tip and merge commit are ancestors of the
19
+ head branch. A squash or rewritten remote branch can require dropping
20
+ commits, in which case the command refuses.
21
+
22
+ Exit 1 reports conflicts in `paths`. Stage the resolved files by path and
23
+ use `--continue` to commit with the configured signing settings.
24
+ If signing fails, repair the signer and run `--continue` to retry.
25
+ `--abort` restores the checkout where the update started. Both require
26
+ the merge that this command started in this worktree.
27
+
28
+ JSON includes `operation` (`merge`), `result`, `branch`, `paths` and the
29
+ full commit IDs `previous`, `target` and `sha`. Exit 0 reports a completed
30
+ operation. A refusal exits 3.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worktrees",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Read CI, rebase onto the head branch, describe, ship and merge pull requests, and prune finished worktrees through the worktrees CLI",
5
5
  "author": {
6
6
  "name": "Mihai Bojin",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worktrees",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Read CI, rebase onto the head branch, describe, ship and merge pull requests, and prune finished worktrees through the worktrees CLI",
5
5
  "author": {
6
6
  "name": "Mihai Bojin",
@@ -86,7 +86,7 @@ edits a pull request's title and body, `fast-forward` runs
86
86
  `gw fast-forward` and its conflict loop, and `ship-it` commits, pushes,
87
87
  opens and edits the pull request, reruns CI and merges. No skill
88
88
  pre-approves a removal, and outside `ship-it` nothing pre-approves a merge,
89
- a push or a CI rerun: those reach the client's own permission prompt. Every push
89
+ a push or a CI rerun: those reach the client's own permission prompt. Every branch push
90
90
  goes through `gw push`, which refuses one that would delete a commit only
91
91
  the remote holds or bring back commits the head branch merged; the rules
92
92
  deny a raw `git push --force-with-lease`, `git rebase`, `gh pr merge`,
@@ -131,7 +131,9 @@ to a merged pull request, and asking for it approves every step for that
131
131
  change: a branch off the head branch when you stand on it, commits by path,
132
132
  `gw fast-forward --autostash`, `gw push`, the pull request and
133
133
  its description, a release note through `release:write` when the release
134
- plugin is installed, the CI fixes, and the merge.
134
+ plugin is installed, the CI fixes, and the merge. With `--update=merge`,
135
+ `gw update` brings in the review target and `gw push --ff-only` publishes
136
+ without rewriting branch history.
135
137
 
136
138
  `/worktrees:ship-it fix-parser add-tests` does the same for each branch, one
137
139
  after another, switching this worktree to each. A branch checked out in
@@ -166,7 +168,20 @@ carries an auto-resolution block, one row per problem, which the squash
166
168
  message leaves out. The report ends with one row per problem: the pull
167
169
  request, what was wrong, what fixed it. `--hold-merge` does everything but
168
170
  the merge, and prints the one `gw merge` or `glab` command that makes it with the
169
- prepared subject and body.
171
+ prepared subject and body. It also holds release tags.
172
+
173
+ The repository's `release.tagging` declaration sets the publication owner.
174
+
175
+ | Policy | After a confirmed merge onto the release branch |
176
+ | --- | --- |
177
+ | `after-merge` | `release:tag` publishes signed tags for version changes at each landed commit. Release plugin 0.10.0 checks the prospective merge. Its scoped publisher permission is needed when a version changes. |
178
+ | `manual` or omitted | A release requires a separate request. |
179
+ | `workflow` | CI owns the tag. Shipping neither tags nor dispatches a release. |
180
+
181
+ If a batch stops, shipping passes the confirmed commits to the publisher.
182
+ Queued reviews wait for forge confirmation. A publication retry reads the
183
+ merged review and uses its original commit. The release [permission guide](skills/ship-it/rights.md#exact-release-tags)
184
+ describes setup for an opted-in repository.
170
185
 
171
186
  ## Cleanup
172
187
 
@@ -0,0 +1,19 @@
1
+ ---
2
+ type: llm
3
+ ---
4
+
5
+ Grade the proposed operations for each simulated request. Pass only when all
6
+ of these hold:
7
+
8
+ - marketplace publishes the two exact merged SHAs in the prompt and excludes
9
+ pending #43. queue performs no publication and does not resubmit the merge.
10
+ - cli and package merge without any tag creation, tag push or workflow dispatch.
11
+ - legacy finishes as merged without a publication blocker, tag or dispatch.
12
+ - invalid retains the confirmed merge, reports the manifest error and withholds publication.
13
+ - resume uses the confirmed original SHA for publication without another merge.
14
+ - unavailable and forbidden both stop before merge and publication.
15
+ - hold prepares the merge without executing it or publishing.
16
+ - docs and maintenance merge without a publisher permission or tag action.
17
+ - fork obtains the verified numbered ref from the target remote and proceeds without publishing.
18
+
19
+ A description of an action as withheld does not count as taking it.