Expand description
choir repo follower — the remotes a node pushes its landings to
(D21), managed on the node host.
A follower is a remote on a bare repository under the state
directory. add writes one with git remote add and drops the
marker that makes choir node serve start the daemon with
--followers; list reads them back; push pushes now, which is
what the daemon does after every landing once restarted. Nothing
here fetches, and nothing forces: the node is canonical, a follower
copies it, and one that diverged is a push that refuses.
§Examples
use choir_cli::follower::repository_name;
// `.git` is the bare repository's own spelling, added when missing.
assert_eq!(repository_name("me/thing"), "me/thing.git");
assert_eq!(repository_name("me/thing.git"), "me/thing.git");Functions§
- add
- Adds one remote to one repository, and the marker if it is not there.
- bare
- The bare repository’s path, for the message that names it.
- following
- Whether the marker that makes the daemon push after landings exists.
- list
- Every repository with its remotes,
(repo, remotes). - push
- Pushes one repository, or every listed one, to each of its remotes.
- repositories
- The repositories a node holds, in
repos.listorder. - repository_
name - A repository as
repos.listand the root spell it.