Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs: managed commit-push names its configured upstream

garrytan1e944f370491
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9ab494d9fb..5cfe0cba97 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,10 +16,10 @@ identifiers and attribution are available in the pre-removal Git revision
### Itemized changes
-- `src/core/git/commit-push.ts`: `commitManagedPaths` marks its result `managed: true` and counts `unpublished` (`@{upstream}..HEAD`; `null` when no upstream can be read).
-- `src/commands/git.ts`: a managed result reports `committed <sha>` or `nothing to commit`, then `not pushed:` with the unpublished count (or "on <remote>/<branch> as last fetched", or "no upstream"), and returns before the push log is written.
+- `src/core/git/commit-push.ts`: `commitManagedPaths` marks its result `managed: true`, counts `unpublished` (`@{upstream}..HEAD`; `null` when no fetched upstream can be read) and names the branch's configured `upstream` (`null` when it names none); both are in `--json`.
+- `src/commands/git.ts`: a managed result reports `committed <sha>` or `nothing to commit`, then `not pushed:` with the unpublished count against the configured upstream (or "is on <upstream> as last fetched", "may not be on <upstream>" when its fetched ref can't be read, or "has no upstream"), and returns before the push log is written.
- Docs: `docs/guides/shared-checkout-git.md` (managed worktree paragraph and the `nothing_to_commit` / `committed_local` rows).
-- Tests: `test/git-commit-push-managed-unpublished.test.ts` (the real CLI against a bare remote, a sibling clone and a managed-root registry: an existing commit with a moved remote, a fresh commit, a checkout on its upstream, a branch with no upstream; no push-log line in any case).
+- Tests: `test/git-commit-push-managed-unpublished.test.ts` (the real CLI against a bare remote, a sibling clone and a managed-root registry: an existing commit with a moved remote, a fresh commit, a checkout on its upstream, a branch with no upstream, an upstream whose fetched ref is missing, an upstream with a different branch name; no push-log line in any case).
## [0.60.618.0] - 2026-11-08
diff --git a/docs/guides/shared-checkout-git.md b/docs/guides/shared-checkout-git.md
index e12895484f..43661f38f4 100644
--- a/docs/guides/shared-checkout-git.md
+++ b/docs/guides/shared-checkout-git.md
@@ -132,7 +132,8 @@ under the checkout's commit lock and reports `committed_local` (or
moves the checkout, and refuses `--pending`, `--branch`, `--resolve` and
`--allow-outside-source-root` there (`commit_paths_invalid`). Its
`unpublished` field counts the commits the upstream lacks as last fetched
-(`null` without an upstream), and it writes no push-log line. Commits wait for
+(`null` when no fetched upstream can be read), `upstream` names the branch's
+configured upstream (`null` when it has none), and it writes no push-log line. Commits wait for
the owner's next Git publish; `gbrain git commit-push --push-only --keep-checkout`
publishes them now. `--push-only` without `--keep-checkout` is still refused with
`writer_coordinator_required`.