goga topics
Work with the topics of one year — the cross-branch inventory, fresh-work creation, switching, deletion, the merged-topic clear, the base exchange (update, propagate), and the standalone publication (publish).
goga topics is a Click group with eight subcommands (board, create, switch, delete, clear, update, publish, propagate) over the topics domain. It is host-side and git-driven: the board and the deletion and clear resolutions read branch trees without checkout, and creation and switching perform bounded local git mutations. The network operations are the --publish push, the delete push (one per target that has an origin twin — delete and clear share it), the update publish push, the publication fetch and publication push of publish, the push inherent to every propagate, and the single targeted fetch of a base resolution (Fetching origin/<base>..., one stdout line); every other mutation is local.
Synopsis
goga topics [--year YYYY] board [--remote] [--info] [--host NAME]... [--topic SLUG]... [--per-host] [--json]
goga topics [--year YYYY] create BRANCH_NAME [--todo [TEXT]] [--switch] [--publish] [--base-ref REF] [--from-current] [--commit TEMPLATE]
goga topics [--year YYYY] switch IDENTIFIER [--todo]
goga topics [--year YYYY] delete IDENTIFIER... [--yes]
goga topics [--year YYYY] clear [--base-ref REF] [--yes]
goga topics [--year YYYY] update [IDENTIFIER] [--base-ref REF] [--publish]
goga topics [--year YYYY] publish [IDENTIFIER]
goga topics [--year YYYY] propagate [IDENTIFIER] [--base-ref REF] [--yes]
--year/-y scopes every subcommand to one four-digit year (default: the current year). The year is never printed.
goga topics board
Prints the board — the cross-branch topic inventory of the scoped year — in two views over one collection pass.
The default view is a four-column table — topic, branch, hosts, statuses — with one entry per topic that still has its own branch:
| Topic | Branch | Hosts | Statuses
|----------------|----------------|----------------|-------------------
| feat-b | feat-b | feat-b | [defined]
|----------------|----------------|----------------|-------------------
| * feat-a | feat-a | feat-a | [planned]
| | | feat-b |
|----------------|----------------|----------------|-------------------
- One entry per topic with an own branch — a hosting branch whose branch part (the whole name of a local branch, the short name of a remote-tracking ref) normalizes into the topic slug. A topic carried only by merged hosts — a topic without its own branch — appears in no view, default, audit, and JSON alike; it is history, reachable through git itself.
- The hosts column lists every branch carrying the topic's history — the own branch included — alphabetical by display name; a local branch and its remote twin count as one host under the local name. Every host name prints on its own grid line of the column — a name never splits, an overlong one truncates with an ellipsis.
- Several own branches colliding resolves deterministically: the record hosting the current branch, otherwise a non-remote record over a remote-tracking one, otherwise the display-name alphabet. The entry carries that record's statuses and todo summary.
*marks the entry whose own branch is the current working branch — a merged host carrying the topic's history never carries the marker.- The record of the current branch reads the working copy — uncommitted progress is visible; every other record reads its branch's committed tree (no checkout happens).
- Entries sort by scale order of the first maximal status, then alphabetically by topic.
--per-hostswitches to the audit view — the three-column table (topic, branch, statuses) with one row per topic and hosting branch of the own-branched topics, the pre-aggregation records verbatim: every hosting branch of a kept topic gets its own row.--host NAMEkeeps only the named hosting branches — an exact display-name match, repeatable, the union across values. The default view filters the entries whose hosts list contains a given name; the audit view filters the records by branch display name. An unknown name is the empty board, never an error.--topic SLUGkeeps only the named topics — an exact slug match, repeatable, the union across values, composed with--host(an entry or row survives both filters). The own-branch requirement stands first: a filter never resurrects a topic without its own branch. An unknown slug is the empty board, never an error.--remote/-rreads remote-tracking refs instead of local branches; the current branch shows through its remote twin.--info/-iadds the todo and delivery columns — between hosts and statuses in the default view, between branch and statuses in the audit view. The todo cell is the first line of the topic'stodo.mdthat yields text after leading#markers are stripped and the edges trimmed; a topic without atodo.md, or one whose every line reduces to emptiness, renders an empty cell. The delivery cell is the topic's divergence marker against the configuredtopics.base_ref—base(the own tip equals the base — the topic sits exactly on it, nothing of its own),up-to-date(the topic carries the base — no lag),propagated(the base carries the whole topic — every commit of it, the state the clear scope addresses), orneed-update(the pair diverged — the topic has undelivered work and the base has commits the topic lacks); with notopics.base_refconfigured, or a base or own branch that does not resolve, the cell stays empty. The working copy reads the file directly; every other row reads it from the branch's tree (no checkout).--jsonprints the machine-readable projection of either view instead of the table — a pretty-printed JSON array (indent 4, sorted keys, UTF-8;[]for an empty board). Every item carriestopic,branch,statuses,current,remote,todo, anddivergence(a string ornull, never omitted); the default view's items carryhoststoo.--jsoncannot combine with--info— a clean error before any git access.- A row divider — the same dash run as under the header — closes every entry, the last included; wrapped continuation lines stay undivided.
- Every host name prints on its own continuation line of the hosts column; the statuses wrap onto continuation lines when the segments overflow the terminal width. The table never exceeds the width except on terminals below the narrow threshold of the active column rule — 44 columns for the four-column default table, 66 with its six-column
--info, 33 for the three-column audit table, 55 with its five-column--info— where every column keeps a minimum of 8. - An empty board prints nothing as a table,
[]as JSON, and exits 0 — a year without topics is not an error.
The statuses are the topic's maximal present statuses in scale order — empty, todo, defined, discovered, backlog, prototyped, designed, planned, done, deepening as todo.md, prd.md, adr.md, task.md, arch.md, design.md, plan.md, and completed/plan.md land. Tool packages can add their own statuses, shown qualified (mkdocs.published); see Tools.
goga topics create
Creates fresh work — a branch named exactly as entered, planted at a base commit with the topic of the scoped year committed on it, while you stay on your branch:
goga topics create Feature/Foo_Bar --from-current --todo "Payment retry"
# Created branch Feature/Foo_Bar and topic 2026/feature-foo-bar
# (one commit on the branch carries .goga/history/2026/feature-foo-bar/todo.md;
# the working copy, the index, and HEAD stay untouched — no switch)
goga topics create Feature/Foo_Bar --base-ref origin/main --switch
# Created branch Feature/Foo_Bar and topic 2026/feature-foo-bar
# (the branch is checked out; .goga/history/2026/feature-foo-bar/ now exists
# in the working copy; on a terminal the publication ask appears first)
- The branch name is taken verbatim; git itself rejects invalid names. The default path builds one quarantined commit carrying the topic's
todo.mdon top of the resolved base commit — git plumbing that never touches the working copy, so a dirty tree and a detached HEAD do not interfere — and plants the branch at it (git update-ref --stdin); no switch happens, andgoga topics switch <name>brings you onto the work later.-s/--switchplants the branch at the base and checks it out instead (git switch) — a failed checkout rolls the planted branch back so the name never strands — with the topic directory created in the working copy, uncommitted. - The base resolves as
--base-ref>topics.base_refin.goga/config.yml> the current HEAD under--from-current> clean error. With nothing set, exit 1 with a message naming the flag, the flag alternative, and the configuration line, including a two-line YAML example (see Configuration). - The topic directory is
.goga/history/<YYYY>/<slug>/, where the slug is the normalized name (lowercase, non-ASCII dropped, anything outside[a-z0-9]as-, repeat hyphens collapsed, edges trimmed:Feature/Foo_Bar→feature-foo-bar). The default path carries the directory as the committedtodo.md;--switchcreates it on disk. No artifact file is written unless a todo resolves. -t/--todocarries three states: a value is the todo itself — the multi-line text as entered plus one trailing newline, UTF-8 — which marks the topictodoon the status scale and feeds the--infocolumn of the board; the value-less form declares the piped stdin as the todo source (see Editor todo entry); an empty value —--todo "",--todo=,-t ""— counts as absent: notodo.mdis ever created empty. The literal__declared__is the reserved marker of the stdin declaration.- The todo is required on the default path — git keeps no empty directories, so the work exists only through its committed
todo.md. A cancelled editor entry or a missing todo exits 1 withthe local creation needs a todo — the board reads the topic through todo.md; pass --todo/-t with a value, or pipe the todo into stdin and pass the value-less --todo, or --switch/-s to create on the spot without one. Under--switchthe todo is optional. --switchacts only without--publish— the publication never switches, so the two together are a clean error (exit 1).- The current branch already hosting the same slug is a clean error (exit 1) —
branch <name> already hosts topic <YYYY>/<slug> — switch to it instead of re-creating it. There is no idempotent path. - Occupancy is probed against three oracles in order: a local branch with the entered name, a remote-tracking branch with the entered name (local refs only — no network), and an existing
.goga/history/<YYYY>/<slug>/directory (only a directory occupies a topic). A fourth oracle applies to every creation: any branch tree of the inventory — local and remote-tracking refs — hosting the topic directory of the slug (topic '<slug>' of <YYYY> is already hosted by branch '<branch>'). - An occupied name, an unresolvable base, or a name that normalizes to an empty slug (a fully non-ASCII name) is one clean error (exit 1) with the reason and a hint to
goga topics boardfor occupied names — there is no re-ask. Every read-only decision (the preflight) runs before the first input, so a failing base never wastes an entered todo.
Editor todo entry
The todo resolves through an acquisition ladder: a given value, else the declared piped stdin, else the external editor on an interactive terminal, else nothing — and the path rules decide (the default path and --publish need a todo, --switch does not).
$ printf 'Pay the retry cap.\n' | goga topics create feat/x --from-current --todo
# Created branch feat/x and topic 2026/feat-x
# (the piped content becomes the todo verbatim; no ask follows — a piped
# todo is a scripted creation)
$ goga topics create feat/x --from-current --switch
Enter the text. An empty or unchanged file cancels the entry.
# (the editor opens; saving writes todo.md, cancelling leaves nothing)
# Created branch feat/x and topic 2026/feat-x
- The value-less
--todo/-tdeclares the piped stdin as the todo source: the pipe is read fully exactly once at todo-resolution time — after the read-only preflight, before the editor and the ask — decoded strictly as UTF-8 (anything else is a clean error naming the option, exit 1) and never trimmed; its content becomes the todo verbatim with the value-form semantics. The read happens only on this rung — the value form never touches the pipe. - Content on the pipe without the declaration is never silently ignored — it is a clean error naming the option (exit 1):
stdin carries content but no todo source is declared — pass --todo/-t with a value or the value-less --todo to read the piped content. A bare pipe — declared or not — falls through to the editor rung. - The editor rung opens only on an interactive terminal; the editor resolves through
$VISUAL→$EDITOR→ the system default (vi), the session editing a temporary file outside the project. - Saving a blank file — or a file unchanged from its prefill — cancels the entry: under
--switchthe command continues with notodo.mdwritten; on the default path the creation is a clean error asking for the todo (see above). A failed editor run is a clean error with nothing mutated. - Without an interactive terminal and with no todo resolved: the default path and
--publishfail with their path-specific clean errors (exit 1), while a headless--switch/-screation succeeds with no todo at all.
The publication ask
On an interactive terminal, without --publish, once a todo is resolved, the command asks once: Publish the branch to origin? — never when the todo came from the pipe (a piped todo is a scripted creation). An empty answer reads the default no — the local path runs (the quarantined branch, or the checked-out branch under --switch); answering yes takes the publication path below; Ctrl-C or EOF aborts with nothing created. Without a terminal, or with a cancelled todo entry, no ask happens and the local path runs.
--publish — create and publish in one step
-p/--publish takes the publication path without the ask: it builds the branch off the resolved base, commits only the topic's todo.md on it, and pushes it to origin — while you stay on your branch:
goga topics create Feature/Foo_Bar --publish --todo "Payment retry"
# Created branch Feature/Foo_Bar and published topic 2026/feature-foo-bar
- The working copy, the index, and HEAD stay untouched — the commit is built through quarantined git plumbing, so a dirty tree and a detached HEAD do not interfere; the topic directory is never created on disk.
- The branch carries exactly one commit — the todo file at
.goga/history/<YYYY>/<slug>/todo.md— and is pushed tooriginwith upstream binding (git push -u, exactly that one branch). The topic appears on the remote board with thetodostatus. - A todo is required under
--publish(the board reads the topic through the todo file). An omitted--todoresolves through the acquisition ladder first — the piped stdin under the value-less declaration, else the editor; a missing or cancelled todo exits 1 withthe publication needs a todo — the board reads the topic through todo.md. - Commit template:
--commit/-c>topics.create.commit> the built-in defaultCreate topic '{slug}'.{slug}is replaced with the topic slug; a template without the placeholder is used verbatim.--commitwithout--publishis a clean error (exit 1) — it acts only together with--publish. originmust be configured (exit 1 otherwise, before any mutation). The repository git identity must be set —commit-treeneeds an author.- A failed push rolls back fully: the planted branch is deleted, nothing else was ever mutated, and git's push reason surfaces as one clean error (
git failed: <git stderr>, exit 1). A re-run with the same name then succeeds.
goga topics switch
Brings the repository onto the branch hosting the requested work:
goga topics switch feat-x
# Switched to branch feat/x
goga topics switch feat-x --todo
# Switched to branch feat/x
# (the editor opens with the topic's todo.md; saving overwrites it, no commit)
IDENTIFIER resolves through three tiers — the first tier with a match wins, so a unique identifier never reaches a prompt:
- Exact branch name;
- Exact topic slug (local branches before remote-tracking refs);
-
Prefix — a branch whose name, or whose hosted slug, starts with the input.
-
Several candidates on an interactive terminal: the numbered list with each candidate's statuses is printed and a number is prompted; with no terminal, the numbered list itself is the error (exit 1).
- No candidate at all: exit 1 with a hint to run
goga topics board. - Already on the hosting branch: idempotent success —
Already on branch <name>— with no working-tree probe and no mutation. - A local host is checked out (
git switch <branch>); a remote-only host creates the local branch from the remote-tracking ref (git switch -c <branch> <remote>/<branch>, reported asCreated branch <branch> from <remote>/<branch>). - A switch that would mutate first probes the working tree; a dirty tree exits 1 with
working tree is dirty — commit or stash before switchingbefore anything is touched.
--todo — enter the topic's todo after the switch
With --todo the external editor opens with the switched topic's todo.md after the switch — the same editor session as the create entry, prefilled with the existing todo. Saving overwrites the file as entered plus one trailing newline, without a commit; cancelling (no save, blank, or unchanged) leaves it untouched.
- The flag needs an interactive terminal — without one it is a clean error before any resolution (exit 1).
- The chosen candidate must host a topic —
branch '<name>' hosts no topic — switching creates nothing(exit 1); switching never creates anything. - Already sitting on the hosting branch still enters the todo — the idempotent switch carries the entry.
The same resolution backs the switch half of goga pipeline <name> -t <identifier> — there, an identifier nothing hosts creates fresh work instead of failing, and a sibling --todo flag opens the same entry (see pipeline).
goga topics delete
Deletes identified topics — the local branch, its origin twin, and the topic directory:
goga topics delete feature-foo
# feature-foo -> Feature/Foo_Bar
# Delete 1 topic(s)? y
# Deleted 1 topic(s) of 2026: feature-foo
goga topics delete feature-foo feature-bar --yes
# Deleted 2 topic(s) of 2026: feature-foo, feature-bar
Every IDENTIFIER resolves first — a branch name, a topic slug, or their prefix (the same tier order as switch), plus topic directories of the year no branch hosts:
- An identifier nothing hosts, an ambiguous identifier, a topic without its own branch, several branches hosting one topic, or the current branch hosting a target is a clean error (exit 1) and nothing is deleted — the resolution is all-or-nothing.
- A local branch and its
origintwin collapse into one target; repeated identifiers naming one topic collapse too. A tracking ref of another remote is not a twin — the deletion push targetsoriginonly. Two local branches normalizing into one slug (sayFeature/Fooandfeature-foo) never pick one of them by order —several branches host topic '<topic>': <branches> — remove all but one of them before deleting. - A topic exists exactly as long as its own branch exists: the own branch is found by name — a ref whose branch part (the whole name of a local branch, the short name of a remote-tracking ref) normalizes into the topic slug — never by tree carriage. A topic without its own branch — its history hosted by other branches only, the post-merge state — is a clean error naming no hosting branch:
topic '<topic>' has no branch — there is nothing to delete; it is history. A topic directory no branch hosts stays deletable (directory only) — an unpublished topic (its todo not yet committed) reaches its disk directory by its exact name, and the bare same-named branch is the topic's own branch by name: it goes with the topic. - The resolved list prints one line per target —
<topic> -> <branch>(or the twin, or(directory only)) — and one confirmation covers the whole list; a declined answer exits 0 with nothing deleted.--yes/-yskips the confirmation; without it a non-interactive terminal is a clean error naming the flag. - The removal deletes each topic's own local branch, its
origintwin (a network push), and its topic directory — the directory joins the deletion exactly when no branch surviving the deletion carries the topic (the survivors are the inventory minus the target's own branch and twin; the own branch's own tree dies with it, a non-originown-named tracking ref survives and keeps the directory). The current branch hosting a target — by branch name or by slug — is a clean error asking to switch away first. - A rejected remote deletion restores the failing target's local branch at its captured commit and surfaces git's reason as one clean error; targets removed before the failure stay removed.
goga topics clear
Clears the merged topics of the scoped year — every own-branched topic whose topic directory the base ref's tree carries:
goga topics clear
# feature-foo -> feature-foo
# feature-bar -> feature-bar
# Clear 2 topic(s)? y
# Deleted 2 topic(s) of 2026: feature-foo, feature-bar
goga topics clear --base-ref origin/release/2.0.0 --yes
# Deleted 1 topic(s) of 2026: feature-foo
- The base resolves as
--base-ref>topics.base_refin.goga/config.yml— there is no current-HEAD rung, unlikecreate; no base at all is a clean error naming the flag and the configuration line (exit 1). The base is any revision string git resolves (a branch, a remote-tracking ref, a tag, a hash); it is resolved once, read at the resolved commit, and never moved or pushed — being on it is not an error. - The scope is every topic of the year that still has its own branch and whose topic directory the base tree carries — the merged topics of the year. A branchless topic is out of scope silently — it is history. An empty scope prints
No merged topics to clear.and exits 0 — not an error. - The resolved list prints one line per target —
<topic> -> <branch>(or the twin, or(directory only)) — and one confirmation (Clear N topic(s)?) covers the whole list; a declined answer exits 0 with nothing deleted.--yes/-yskips the confirmation; without it a non-interactive terminal is a clean error naming the flag (the-ysits after the subcommand token, unlike the group-yyear). - Deletion semantics are exactly those of
goga topics delete: the own local branch, theorigintwin, and the survivor-gated directory of each target go in one confirmed pass, a rejected remote deletion restores the local branch at its captured commit, andtopic_deletedfires per fully removed target. Only the targets' own refs are touched — the other hosts of a target are not. - The current branch being a target's own branch — by branch name or by slug — is a clean error asking to switch away first; the whole clear cancels.
goga topics update
Brings a topic up to its base — merged, rebased, or fast-forwarded under the configured strategy:
goga topics update feat-x
# Updated topic 2026/feat-x from 'main' via merge (merged)
goga topics update --base-ref origin/main --publish
# Updated topic 2026/feat-x from 'origin/main' via rebase (rebased)
- An omitted IDENTIFIER addresses the current topic — the branch hosting it must be the current working branch; a given identifier resolves through the same tiers as
switch, and a branch matched by name or prefix addresses its own topic — the slug its branch name normalizes to — never another topic's tree the branch carries from a layered base or a received propagate; a slug identifier addresses that topic wherever it is hosted. The base resolves as--base-ref>topics.base_refin.goga/config.yml(no current-HEAD rung); no base at all is a clean error naming the flag and the configuration line (exit 1). A base naming the topic's own branch — bare ororigin/-twin form — is a clean error. - The strategy comes from
topics.update.strategy—merge(the default),rebase,ff-else-merge,ff-else-rebase; an invalid value is a clean configuration error naming the key. Theff-else-*strategies take the fast-forward whenever the topic has no own work; the realized kind names the outcome line. Arebaseupdate flattens exactly asgit rebasedoes — merge commits on the topic line (a prior merge-strategy update leaves one) are dropped from the replay, never replayed as steps. - The base resolution fetches the base's origin branch once (
Fetching origin/<base>...) and reconciles a diverged local/origin pair onto the local base branch (aReconcile base '<name>'commit, never pushed by the resolution itself). The base's local branch being the current branch is a clean error asking to switch away first. - The current topic updates in place behind a read-only pre-flight (
merge-tree/ a plumbing replay): a dirty working tree or a conflicting update is a clean error before any mutation pointing at manual git; the real merge/rebase/fast-forward runs only after the pre-flight passes. Another topic updates fully checkout-free — the result is built from trees and planted with one ref update while you stay on your branch. - A topic already carrying its base is the idempotent
already-currentsuccess — nothing mutates and nothing publishes. --publish/-ppushes the refreshed branch: a plain push after merge or fast-forward; a rebase pushes under a lease bound to the pre-rebase tip (--force-with-lease) when the branch has an origin twin. A failed publish push leaves the confirmed update standing — the one atomicity exception.- No confirmation is asked.
- Requires git >= 2.40 (
merge-tree --merge-baseof the rebase path); older git fails with one clean error naming the required and present versions.
goga topics publish
Delivers an existing topic branch to origin — the publication of a topic's own branch as an operation of its own; creating fresh work is not part of it:
goga topics publish feat-x
# Fetching origin/feat-x...
# Published topic 2026/feat-x — pushed
goga topics publish
# (publishes the current topic)
- An omitted IDENTIFIER addresses the current topic; a given one resolves through the addressee rule of
update— a branch matched by name or prefix addresses its own topic, a slug addresses that topic wherever it is hosted. - The operation fetches the branch's own origin twin once (
Fetching origin/<branch>..., one stdout line before it runs; an absent twin reads asNone— the fetch of a missing remote ref is not a failure, and its absence report overrides the remote-tracking ref, so a twin deleted on the origin side is never mistaken for present through a stale ref), then classifies the pair into one of four outcomes:
| origin twin vs own tip | Outcome |
|---|---|
| twin absent | pushed — the push creates the twin |
| twin == tip | up-to-date — success, nothing to do |
| twin strictly ahead | remote-ahead — success, nothing to push |
| twin strictly behind | pushed — the push fast-forwards the twin |
| diverged (neither contains the other) | clean error naming both tips; reconcile via git, re-run |
- The result is exactly one stdout line naming the outcome kind; exit 0 on all three success kinds.
- Delivery, never history rewriting — no force and no lease under any outcome. No confirmation is asked; the working-tree state is irrelevant to the push; the local branch and the working copy stay untouched; no configuration keys are read.
- Every completed publication — the idempotent outcomes included — emits
topic_publishedwith the remote branch, the commit facts of the twin tip, and the outcome kind (see hooks). - A missing
originremote is a clean error before any network operation.
goga topics propagate
Delivers a topic into its base — merged, fast-forwarded, or squashed — and pushes it:
goga topics propagate feat-x
# Propagate topic feat-x into 'main' (pushes to origin)? y
# Propagated topic 2026/feat-x into 'main' via merge (merged)
goga topics propagate feat-x --yes
# (skips the confirmation)
- An omitted IDENTIFIER addresses the current topic; a given identifier addresses the addressee rule of
update— a branch matched by name or prefix addresses its own topic, a slug addresses that topic wherever it is hosted. The base resolves as--base-ref>topics.base_ref— no current-HEAD rung, and no base at all is a clean error naming the flag and the configuration line (exit 1). The base naming the topic's own branch, a base naming no branch at all (a tag or a hash — the delivery lands on a branch), or the base's local branch being the current branch, are clean errors. - The strategy comes from
topics.propagate.strategy—merge(the default),ff,squash; an invalid value is a clean configuration error naming the key. The commit message template comes fromtopics.propagate.commit(built-in defaultPropagate topic '{slug}' into '{base}'). - Exactly one confirmation covers the delivery — it names the topic, the target base, and the push to
originthat every propagation performs.--yes/-yskips it (the-ysits after the subcommand token, unlike the group-yyear); a declined answer exits 0 with nothing done; without--yesa non-interactive terminal is a clean error. - The delivery is always checkout-free: the merge/squash commit is built from trees and planted onto the base's local branch with one ref update, then pushed — the push is inherent, there is no publish flag. A base that exists only on
originis written through (no local branch, the delivery pushed to the remote branch). The working copy, the index, and HEAD are never touched. - A base that already carries the topic's commits — or its content under a different commit — is the idempotent
nothing-to-dosuccess; it emits and exits 0 like any other. - A push the remote rejects because the base moved concurrently gets one retry cycle: the planted delivery rolls back, the base re-resolves against the refreshed remote branch, and the delivery is rebuilt and pushed again. A second rejection is a clean error carrying git's reason. Every failure rolls the base's local branch back to its pre-operation tip.
- The topic stays alive: its branch and directory are untouched — cleanup remains the separate
clear. - Requires git >= 2.40; older git fails with one clean error naming the required and present versions.
Exit Codes
| Code | Meaning |
|---|---|
0 |
Success — the board printed, the work created or published, the switch performed, the deletion or clear done (including the idempotent switch, a declined deletion or clear, and an empty clear scope), the update done (including the idempotent already-current), the publication delivered (pushed, up-to-date, and remote-ahead alike), the propagation delivered (including the idempotent nothing-to-do and a declined confirmation) |
1 |
A clean domain error: an unresolvable or ambiguous identifier, no base for a creation, clear, update, or propagation, an unresolvable clear base, an occupied name, a missing todo under --publish or the no-switch creation, --switch together with --publish, a dirty working tree, a branchless (no-own-branch) deletion target or the current branch hosting one, a failed publication or remote deletion, an invalid topics.update.strategy or topics.propagate.strategy, a topic addressed as its own base, a base naming the checked-out branch, a propagation base naming no branch (a tag or a hash), a conflicting update or propagation (with the manual-git hint), a missing origin on publish or propagate, a diverged origin twin of a standalone publication (naming both tips), a propagation rejected twice for concurrent movement, a git older than the exchange floor (2.40), a git infrastructure failure, or a broken goga_tool_* package failing to import during status-scale or hooks-registry assembly |
2 |
A usage error (unknown option, missing argument) |
Notes
- Every mutation is local except the
originnetwork set — the--publishpush, the delete push (deleteandclearshare it), the update publish push (plain or lease-protected), the publication fetch and publication push ofpublish, the push inherent to everypropagate, and the single targeted fetch of a base resolution (updateandpropagateshare it). - The topic exchange (
update,propagate) needs git >= 2.40; older git fails every exchange invocation with one clean error naming the required and present versions. goga history statusshows the same statuses scoped to the working copy of one year (see history).