Expand description
Push, pull and status for every configured remote alike (SPEC 9.6 to 9.9), shared by the CLI and the app.
Each push and pull is recorded per remote in the machine-local
state/remote-status.toml (time, head pushed, last error), so the
History page and Settings can show ahead N, behind N and the last
error without reaching the remote (SPEC 9.8). status reads that
record and, for a folder remote, the folder itself: this machine’s
machine.json (what was pushed) and the siblings’ heads (what there is
to pull). It never fetches from a git remote: behind comes from the
last fetch.
Structs§
- Recorded
Error - The error recorded for a remote’s last push or pull.
- Remote
Record - One remote’s record.
- Remote
Status - A remote as Settings and History show it.
- Status
File state/remote-status.toml.- SyncEnv
- What pushes and pulls run with.
Enums§
- Pushed
- What one push did.
Constants§
- STATUS_
FILE - The record file in
state/.
Functions§
- changed_
by_ pull - Servers and skills a pull changed (SPEC 9.9 step 6).
- pull_
from - Pulls from the selected remotes and merges (SPEC 9.9); one result per
remote, each recorded.
progressas forpush_to. - push_to
- Pushes to the selected remotes (every remote when
nameisNone); one result per remote, each recorded.progressgets git’s progress lines with the remote’s name. - status
- The status of
remote, without contacting a git remote.storeisNonebefore the store exists.
Type Aliases§
- Pull
Result - One pull: the remote’s name and how it went.
- Push
Result - One push: the remote’s name and how it went.