Skip to main content

Module branch

Module branch 

Source
Expand description

delete-branch, protect, unprotect subcommands.

Each operation is anchored at <prefix>/refs/heads/<branch>/, the same key space the protocol REPL writes bundles into. When the URL has no repository prefix (root-of-bucket repos, <prefix> is empty), keys collapse to refs/heads/<branch>/... with no leading slash.

All operator-visible output goes through a Write-bound writer (the *_into entry points) so tests can capture and assert on the messages. The public delete(), protect(), unprotect() methods wrap their *_into siblings with std::io::stdout() for the management CLI.

Structsยง

ManageBranch
Operations on a single branch within a repository.