Repository navigation
feat(cli): add clone, remote, fetch, push and pull - #134
Open
PiquelChips wants to merge 1 commit into
Open
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
PiquelChips
force-pushed
the
feat/sync-commands
branch
3 times, most recently
from
November 22, 2026 18:54
85363c0 to
f5a9828
Compare
A repository has at most one remote, named in `.origin/remote`, which its workspaces share. `origin clone <url> [<path>] [--target <target>]` creates a repository that follows `policy` and one target, and starts a change on its tip: only that snapshot is fetched. Whenever a command needs a snapshot the repository lacks, such as a checkout, a diff or a merge, it's fetched from the remote, skipping what the working copy already holds. A move fetches what it needs before it publishes its `moving` marker, so a move that cannot fetch changes nothing. `origin remote [<url>]` shows or sets the remote, `origin fetch [--target <t>]... [--change <id>]...` fetches the chains followed and the records of the changes that moved, `origin push [<change>]...` shares changes, and `origin pull` fetches first. The remote's event cursor as of the last fetch is kept in `.origin/remote-cursor`, with its op log's generation; setting a new remote forgets it. Fetching never changes the files under a workspace. A clone canonicalizes its root, creates missing parents, and on failure removes exactly what it created, or empties the directory it found empty, never a dangling symlink it was given. `show` prints a change's full id, which `fetch --change` takes.
PiquelChips
force-pushed
the
feat/sync-commands
branch
from
November 22, 2026 19:20
f5a9828 to
35be168
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With sync in place, the command line needs to use it: a repository has at most one remote, shared by its workspaces.
Clone:
origin clone <url> [<path>] [--target <target>]followspolicyand one target, fetching their chains and only the tip's snapshot, and starts a change on it.Other commands:
remoteshows or sets the remote,fetchbrings the chains and the changes that moved, andpushshares changes.pullfetches, then catches up.Review fixes: a failed clone into an empty directory empties it again.
clonecanonicalizes its root, can create missing parent directories, and on failure removes exactly what it created, never a dangling symlink it was given. Proved with focused tests that fail without their fix.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)