Expand description
Backend-agnostic VCS interface. Only the git and repo modules and test
fixtures may import git2.
Structs§
- Blame
Span - A run of consecutive lines a single commit last touched.
- Bookmark
- A jj bookmark:
namefor a local one,name@remotefor a remote one. - Branch
Info - Change
Info - The jj working-copy change
@, shown on a jj repo’s head line. - Commit
Lists - The status screen’s commit sections.
- Head
Info - JjView
- What jj knows beyond the git store, read through the
jjCLI. - LogEntry
- Pull
Target - The local bookmark nearest
@and the remote it tracks, which a jj pull fetches and rebases onto. - Status
Model - Per-area views of the working tree, neogit-style sections.
Enums§
- Change
Op - A jj verb on one change. A
revis@, or a full commit id that names the change it belongs to, so a change rewritten since keeps its target. - Network
Op - A network operation we run through the backend’s CLI, so the user’s own auth applies and diffler holds no credentials.
- Pull
Outcome - What a jj pull did after its fetch.
- VcsError
Constants§
- JJ_ONLY
- What a jj-only verb answers in a git repo.
Traits§
Functions§
- against_
diff - Three-dot diff of
revagainst the working tree:merge-base(rev, HEAD)vs index + worktree + untracked. Commitsrevgained since the branch forked stay out of it; uncommitted work stays in. - commit_
lists recentleaves out whatunpushedholds, so a caller applies both or neither, or a commit goes missing from both sections.