Documentation
¶
Overview ¶
Package jj implements the jj (Jujutsu) VCS backend.
Index ¶
- func Register()
- type Backend
- func (*Backend) Detect(path string) (bool, error)
- func (*Backend) Name() string
- func (*Backend) Priority() int
- func (*Backend) Run(ctx context.Context, path string, args []string, interactive bool) (backend.RunResult, error)
- func (*Backend) Status(ctx context.Context, path string) (backend.RepoStatus, error)
- func (*Backend) SubcommandArgs(op string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct{}
Backend implements backend.Backend for jj repositories.
func (*Backend) Run ¶
func (*Backend) Run( ctx context.Context, path string, args []string, interactive bool, ) (backend.RunResult, error)
Run executes jj args in path. Multi-step ops (pull, etc.) run each step sequentially, stopping on the first failure.
func (*Backend) Status ¶
Status queries jj for the current change, all local bookmark tracking states, working-copy cleanliness, and conflicts.
Subprocess calls:
- jj log -r @ → change ID, dirty flag, conflict flag
- jj bookmark list --all-remotes <head> → structured bookmark tracking data
- jj bookmark list --all-remotes + jj log ×2 (only when HEAD bookmark has no tracking remote but a @remote counterpart exists — colocated repos)
func (*Backend) SubcommandArgs ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.