pub struct JjAt<'a, R: ProcessRunner = JobRunner> { /* private fields */ }Expand description
Implementations§
Source§impl<'a, R: ProcessRunner> JjAt<'a, R>
impl<'a, R: ProcessRunner> JjAt<'a, R>
Sourcepub async fn run_raw(&self, args: &[String]) -> Result<ProcessResult<String>>
pub async fn run_raw(&self, args: &[String]) -> Result<ProcessResult<String>>
Bound form of Jj’s run_raw.
Sourcepub async fn run_raw_args(&self, args: &[&str]) -> Result<ProcessResult<String>>
pub async fn run_raw_args(&self, args: &[&str]) -> Result<ProcessResult<String>>
Bound form of Jj’s run_raw_args.
Sourcepub async fn capabilities(&self) -> Result<JjCapabilities>
pub async fn capabilities(&self) -> Result<JjCapabilities>
Bound form of Jj’s capabilities.
Sourcepub async fn git_clone(
&self,
url: &str,
dest: &Path,
colocate: bool,
) -> Result<()>
pub async fn git_clone( &self, url: &str, dest: &Path, colocate: bool, ) -> Result<()>
Bound form of Jj’s git_clone.
Sourcepub async fn status(&self) -> Result<Vec<ChangedPath>>
pub async fn status(&self) -> Result<Vec<ChangedPath>>
Bound form of Jj’s status (with dir pre-bound).
Sourcepub async fn status_text(&self) -> Result<String>
pub async fn status_text(&self) -> Result<String>
Bound form of Jj’s status_text (with dir pre-bound).
Sourcepub async fn log(&self, revset: &str, max: usize) -> Result<Vec<Change>>
pub async fn log(&self, revset: &str, max: usize) -> Result<Vec<Change>>
Bound form of Jj’s log (with dir pre-bound).
Sourcepub async fn current_change(&self) -> Result<Change>
pub async fn current_change(&self) -> Result<Change>
Bound form of Jj’s current_change (with dir pre-bound).
Sourcepub async fn describe(&self, message: &str) -> Result<()>
pub async fn describe(&self, message: &str) -> Result<()>
Bound form of Jj’s describe (with dir pre-bound).
Sourcepub async fn describe_rev(&self, revset: &str, message: &str) -> Result<()>
pub async fn describe_rev(&self, revset: &str, message: &str) -> Result<()>
Bound form of Jj’s describe_rev (with dir pre-bound).
Sourcepub async fn new_change(&self, message: &str) -> Result<()>
pub async fn new_change(&self, message: &str) -> Result<()>
Bound form of Jj’s new_change (with dir pre-bound).
Sourcepub async fn bookmarks(&self) -> Result<Vec<Bookmark>>
pub async fn bookmarks(&self) -> Result<Vec<Bookmark>>
Bound form of Jj’s bookmarks (with dir pre-bound).
Sourcepub async fn bookmarks_all(&self) -> Result<Vec<BookmarkRef>>
pub async fn bookmarks_all(&self) -> Result<Vec<BookmarkRef>>
Bound form of Jj’s bookmarks_all (with dir pre-bound).
Sourcepub async fn reachable_bookmarks(&self) -> Result<Vec<Bookmark>>
pub async fn reachable_bookmarks(&self) -> Result<Vec<Bookmark>>
Bound form of Jj’s reachable_bookmarks (with dir pre-bound).
Sourcepub async fn bookmark_track(&self, name: &str, remote: &str) -> Result<()>
pub async fn bookmark_track(&self, name: &str, remote: &str) -> Result<()>
Bound form of Jj’s bookmark_track (with dir pre-bound).
Sourcepub async fn bookmark_set(&self, name: &str, revision: &str) -> Result<()>
pub async fn bookmark_set(&self, name: &str, revision: &str) -> Result<()>
Bound form of Jj’s bookmark_set (with dir pre-bound).
Sourcepub async fn git_fetch_from(&self, remote: &str) -> Result<()>
pub async fn git_fetch_from(&self, remote: &str) -> Result<()>
Bound form of Jj’s git_fetch_from (with dir pre-bound).
Sourcepub async fn git_push(&self, bookmark: Option<String>) -> Result<()>
pub async fn git_push(&self, bookmark: Option<String>) -> Result<()>
Bound form of Jj’s git_push (with dir pre-bound).
Sourcepub async fn current_bookmark(&self) -> Result<Option<String>>
pub async fn current_bookmark(&self) -> Result<Option<String>>
Bound form of Jj’s current_bookmark (with dir pre-bound).
Sourcepub async fn trunk(&self) -> Result<Option<String>>
pub async fn trunk(&self) -> Result<Option<String>>
Bound form of Jj’s trunk (with dir pre-bound).
Sourcepub async fn bookmark_create(&self, name: &str, revision: &str) -> Result<()>
pub async fn bookmark_create(&self, name: &str, revision: &str) -> Result<()>
Bound form of Jj’s bookmark_create (with dir pre-bound).
Sourcepub async fn bookmark_rename(&self, old: &str, new: &str) -> Result<()>
pub async fn bookmark_rename(&self, old: &str, new: &str) -> Result<()>
Bound form of Jj’s bookmark_rename (with dir pre-bound).
Sourcepub async fn bookmark_delete(&self, name: &str) -> Result<()>
pub async fn bookmark_delete(&self, name: &str) -> Result<()>
Bound form of Jj’s bookmark_delete (with dir pre-bound).
Sourcepub async fn bookmark_move(
&self,
name: &str,
to: &str,
allow_backwards: bool,
) -> Result<()>
pub async fn bookmark_move( &self, name: &str, to: &str, allow_backwards: bool, ) -> Result<()>
Bound form of Jj’s bookmark_move (with dir pre-bound).
Sourcepub async fn diff_summary(
&self,
from: &str,
to: &str,
) -> Result<Vec<ChangedPath>>
pub async fn diff_summary( &self, from: &str, to: &str, ) -> Result<Vec<ChangedPath>>
Bound form of Jj’s diff_summary (with dir pre-bound).
Sourcepub async fn diff_stat(&self, revset: &str) -> Result<DiffStat>
pub async fn diff_stat(&self, revset: &str) -> Result<DiffStat>
Bound form of Jj’s diff_stat (with dir pre-bound).
Sourcepub async fn diff_text(&self, spec: DiffSpec) -> Result<String>
pub async fn diff_text(&self, spec: DiffSpec) -> Result<String>
Bound form of Jj’s diff_text (with dir pre-bound).
Sourcepub async fn diff(&self, spec: DiffSpec) -> Result<Vec<FileDiff>>
pub async fn diff(&self, spec: DiffSpec) -> Result<Vec<FileDiff>>
Bound form of Jj’s diff (with dir pre-bound).
Sourcepub async fn commit_count(&self, revset: &str) -> Result<usize>
pub async fn commit_count(&self, revset: &str) -> Result<usize>
Bound form of Jj’s commit_count (with dir pre-bound).
Sourcepub async fn is_conflicted(&self, revset: &str) -> Result<bool>
pub async fn is_conflicted(&self, revset: &str) -> Result<bool>
Bound form of Jj’s is_conflicted (with dir pre-bound).
Sourcepub async fn has_workingcopy_conflict(&self) -> Result<bool>
pub async fn has_workingcopy_conflict(&self) -> Result<bool>
Bound form of Jj’s has_workingcopy_conflict (with dir pre-bound).
Sourcepub async fn resolve_list(&self, revset: &str) -> Result<Vec<String>>
pub async fn resolve_list(&self, revset: &str) -> Result<Vec<String>>
Bound form of Jj’s resolve_list (with dir pre-bound).
Sourcepub async fn template_query(
&self,
revset: &str,
template: &str,
limit: Option<usize>,
) -> Result<String>
pub async fn template_query( &self, revset: &str, template: &str, limit: Option<usize>, ) -> Result<String>
Bound form of Jj’s template_query (with dir pre-bound).
Sourcepub async fn description(&self, revset: &str) -> Result<String>
pub async fn description(&self, revset: &str) -> Result<String>
Bound form of Jj’s description (with dir pre-bound).
Sourcepub async fn evolog(&self, revset: &str, max: usize) -> Result<Vec<Change>>
pub async fn evolog(&self, revset: &str, max: usize) -> Result<Vec<Change>>
Bound form of Jj’s evolog (with dir pre-bound).
Sourcepub async fn file_annotate(
&self,
path: &str,
revset: Option<String>,
) -> Result<Vec<AnnotationLine>>
pub async fn file_annotate( &self, path: &str, revset: Option<String>, ) -> Result<Vec<AnnotationLine>>
Bound form of Jj’s file_annotate (with dir pre-bound).
Sourcepub async fn file_show(&self, revset: &str, path: &str) -> Result<String>
pub async fn file_show(&self, revset: &str, path: &str) -> Result<String>
Bound form of Jj’s file_show (with dir pre-bound).
Sourcepub async fn absorb(
&self,
from: Option<String>,
filesets: &[JjFileset],
) -> Result<()>
pub async fn absorb( &self, from: Option<String>, filesets: &[JjFileset], ) -> Result<()>
Bound form of Jj’s absorb (with dir pre-bound).
Sourcepub async fn split_paths(
&self,
filesets: &[JjFileset],
message: &str,
) -> Result<()>
pub async fn split_paths( &self, filesets: &[JjFileset], message: &str, ) -> Result<()>
Bound form of Jj’s split_paths (with dir pre-bound).
Sourcepub async fn duplicate(&self, revset: &str) -> Result<()>
pub async fn duplicate(&self, revset: &str) -> Result<()>
Bound form of Jj’s duplicate (with dir pre-bound).
Sourcepub async fn rebase(&self, onto: &str) -> Result<()>
pub async fn rebase(&self, onto: &str) -> Result<()>
Bound form of Jj’s rebase (with dir pre-bound).
Sourcepub async fn rebase_branch(&self, branch: &str, dest: &str) -> Result<()>
pub async fn rebase_branch(&self, branch: &str, dest: &str) -> Result<()>
Bound form of Jj’s rebase_branch (with dir pre-bound).
Sourcepub async fn edit(&self, revset: &str) -> Result<()>
pub async fn edit(&self, revset: &str) -> Result<()>
Bound form of Jj’s edit (with dir pre-bound).
Sourcepub async fn squash_into(
&self,
into: &str,
use_destination_message: bool,
) -> Result<()>
pub async fn squash_into( &self, into: &str, use_destination_message: bool, ) -> Result<()>
Bound form of Jj’s squash_into (with dir pre-bound).
Sourcepub async fn commit_paths(
&self,
filesets: &[JjFileset],
message: &str,
) -> Result<()>
pub async fn commit_paths( &self, filesets: &[JjFileset], message: &str, ) -> Result<()>
Bound form of Jj’s commit_paths (with dir pre-bound).
Sourcepub async fn squash_paths(&self, spec: SquashPaths) -> Result<()>
pub async fn squash_paths(&self, spec: SquashPaths) -> Result<()>
Bound form of Jj’s squash_paths (with dir pre-bound).
Sourcepub async fn sparse_set(&self, patterns: &[String]) -> Result<()>
pub async fn sparse_set(&self, patterns: &[String]) -> Result<()>
Bound form of Jj’s sparse_set (with dir pre-bound).
Sourcepub async fn new_merge(&self, message: &str, parents: Vec<String>) -> Result<()>
pub async fn new_merge(&self, message: &str, parents: Vec<String>) -> Result<()>
Bound form of Jj’s new_merge (with dir pre-bound).
Sourcepub async fn abandon(&self, revset: &str) -> Result<()>
pub async fn abandon(&self, revset: &str) -> Result<()>
Bound form of Jj’s abandon (with dir pre-bound).
Sourcepub async fn git_fetch_branch(&self, branch: &str) -> Result<()>
pub async fn git_fetch_branch(&self, branch: &str) -> Result<()>
Bound form of Jj’s git_fetch_branch (with dir pre-bound).
Sourcepub async fn git_import(&self) -> Result<()>
pub async fn git_import(&self) -> Result<()>
Bound form of Jj’s git_import (with dir pre-bound).
Sourcepub async fn op_log(&self, limit: usize) -> Result<Vec<Operation>>
pub async fn op_log(&self, limit: usize) -> Result<Vec<Operation>>
Bound form of Jj’s op_log (with dir pre-bound).
Sourcepub async fn op_restore(&self, op_id: &str) -> Result<()>
pub async fn op_restore(&self, op_id: &str) -> Result<()>
Bound form of Jj’s op_restore (with dir pre-bound).
Sourcepub async fn workspace_list(&self) -> Result<Vec<Workspace>>
pub async fn workspace_list(&self) -> Result<Vec<Workspace>>
Bound form of Jj’s workspace_list (with dir pre-bound).
Sourcepub async fn workspace_root(&self, name: Option<String>) -> Result<PathBuf>
pub async fn workspace_root(&self, name: Option<String>) -> Result<PathBuf>
Bound form of Jj’s workspace_root (with dir pre-bound).
Sourcepub async fn workspace_add(&self, spec: WorkspaceAdd) -> Result<()>
pub async fn workspace_add(&self, spec: WorkspaceAdd) -> Result<()>
Bound form of Jj’s workspace_add (with dir pre-bound).
Source§impl<'a, R: ProcessRunner> JjAt<'a, R>
impl<'a, R: ProcessRunner> JjAt<'a, R>
Sourcepub async fn transaction<T, F, Fut>(&self, f: F) -> Result<T>
pub async fn transaction<T, F, Fut>(&self, f: F) -> Result<T>
Bound form of Jj::transaction (with dir pre-bound): run f with
op-log rollback on Err. See Jj::transaction for the caveats.