Skip to content

What it will not do

These are not intentions. Each one is a rule the code is built around, and most of them exist because of something that happened on a real machine.

It will not push

There is no git push anywhere in talea. It reads and checks out.

It will not destroy uncommitted work

No reset --hard, no clean -fd, no checkout --force. A dirty repo is fetched and skipped, with a line saying so.

This is also why a repo in the wrong place is moved, not re-cloned. A rename keeps branches, stashes, the reflog and uncommitted work; a re-clone silently discards all of it. talea never copies-then-deletes either — a cross-device move is refused and reported.

It will not delete anything — except a finished worktree you asked it to

A second copy of a repo moves to .talea-duplicates/<GROUP>/<repo> with everything in it. talea rm takes a repo off this machine’s list and leaves the checkout exactly where it is, printing the path.

The module that moves checkouts contains no recursive delete. Its one rmSync removes its own temporary file, and its one rmdirSync clears an empty folder at a move’s destination — a call that refuses any folder with something in it. That is a property of the file, not a promise in a document.

talea prune --apply is the one exception, and it is narrow. It removes a linked worktree only when every change on it is already on origin’s default branch (a squash merge counts) — or it has no commits of its own and has sat untouched for a day — never one that is dirty, locked by anything but an agent that has exited, has another repo inside it or holds ignored files you made (unless you pass --with-ignored), never one it could not fully read, never the main checkout, and never the branch. A merge commit counts as merged only when it is the merge git would make by itself. Each worktree is checked again just before it goes, so anything that appeared after the plan keeps it. The removal is git worktree remove without --force, so git refuses a tree with uncommitted work on its own. Without --apply it is a plan and nothing more.

It will not merge a divergence

Fast-forwards only. A repo that has diverged is reported for you to deal with.

It will not switch branches

talea sync fast-forwards the branch you are on, or leaves it alone and says why. A tool that moves you off a feature branch mid-task is no better than one that clobbers your changes.

This is also why there is no environment or branch-mapping machinery in talea. That belongs to a workspace of deploy branches, not to a person’s own repositories.

It will not guess a branch

defaultBranch is recorded per repo by discover, because GitHub is the only thing that knows. A repo with none recorded is cloned on whatever the server hands over.

It will not move a name-only match unattended

The remote URL is the identity. A folder that merely shares a name is listed and left alone until you say otherwise with --loose or -r.

It will not touch an ignored checkout

ignore: true on a catalogue entry means another tool owns that checkout. No command touches it — not sync, not adopt, not exec --all, not an explicit selection, not -r. Naming it with -r skips it with a note saying why, talea add refuses it, and the checklist shows it greyed out with no key that ticks it. A checkout whose remote is exactly an ignored repo’s is never matched to another repo of the same name, either.

It will not put anything outside the workspace

A catalogue can come from somebody else, so every folder it names is checked before anything is created, moved or written: no absolute paths, no ... A catalogue that fails is refused whole, with every problem named, and manifest pull and discover refuse one before it replaces yours. Two repos in one folder stop any run that would place either, before it starts. Right before each move, clone or doc, the destination is resolved through every symlink above it as well, so a link inside the workspace cannot lead anywhere outside it.

It will not quietly do nothing

An unknown group or repo name exits non-zero. talea where is the sharp case: it exits non-zero and prints nothing on stdout, with every diagnostic on stderr. A bare cd $(talea where typo) would still run cd with nothing and go home — the shell does not stop at a failed $( ) — so use dest=$(talea where typo) && cd -- "$dest", which stops.

It never updates itself mid-run, or without saying so

talea updates itself automatically, at most once a day: after a command finishes it checks npm, and if a newer version exists it installs it in the background. The command you ran finishes on the version it started with, and the next one prints a line saying which version it is now. A tool that moves checkouts across every repo you have should not change behaviour underneath you mid-session, so it never does. talea upgrade --off turns it off.