pub struct DefaultGitOps { /* private fields */ }Expand description
Production GitOps implementation that shells out to the git binary.
Implementations§
Trait Implementations§
Source§impl Debug for DefaultGitOps
impl Debug for DefaultGitOps
Source§impl GitOps for DefaultGitOps
impl GitOps for DefaultGitOps
Source§fn worktree_remove(&self, path: &Path, force: bool) -> Result<(), CoreError>
fn worktree_remove(&self, path: &Path, force: bool) -> Result<(), CoreError>
Removes a worktree. Read more
Source§fn worktree_prune(&self) -> Result<(), CoreError>
fn worktree_prune(&self) -> Result<(), CoreError>
Prunes stale worktree bookkeeping entries. Read more
Source§fn branch_delete(&self, branch: &str) -> Result<(), CoreError>
fn branch_delete(&self, branch: &str) -> Result<(), CoreError>
Deletes a local branch. Read more
Source§fn has_staged_changes(&self, cwd: &Path) -> bool
fn has_staged_changes(&self, cwd: &Path) -> bool
Returns whether the staging area has changes. Read more
Source§fn commit(&self, cwd: &Path, message: &str) -> Result<(), CoreError>
fn commit(&self, cwd: &Path, message: &str) -> Result<(), CoreError>
Creates a commit with the given message. Read more
Source§fn diff(&self, cwd: &Path, base: &str) -> Result<String, CoreError>
fn diff(&self, cwd: &Path, base: &str) -> Result<String, CoreError>
Returns the diff between
base and HEAD. Read moreSource§fn log_oneline(&self, cwd: &Path, range: &str) -> Result<String, CoreError>
fn log_oneline(&self, cwd: &Path, range: &str) -> Result<String, CoreError>
Returns one-line log entries for commits in
range. Read moreSource§fn push(&self, cwd: &Path, branch: &str) -> Result<(), CoreError>
fn push(&self, cwd: &Path, branch: &str) -> Result<(), CoreError>
Pushes the current branch to origin. Read more
Source§fn detect_default_branch(&self) -> String
fn detect_default_branch(&self) -> String
Detects the repository’s default branch. Read more
Auto Trait Implementations§
impl Freeze for DefaultGitOps
impl RefUnwindSafe for DefaultGitOps
impl Send for DefaultGitOps
impl Sync for DefaultGitOps
impl Unpin for DefaultGitOps
impl UnsafeUnpin for DefaultGitOps
impl UnwindSafe for DefaultGitOps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more