pub struct Repo { /* private fields */ }
Implementations§
Source§impl Repo
impl Repo
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn can_undo(&self) -> bool
pub fn can_redo(&self) -> bool
pub fn undo(&mut self) -> Result<()>
pub fn redo(&mut self) -> Result<()>
pub fn path(&self) -> &Path
pub fn uncommitted_files(&self) -> Result<Vec<Meta>>
pub fn diff_details(&self, diff: &Meta) -> Result<Details>
pub fn stage_file(&mut self, file: File) -> Result<()>
pub fn unstage_file(&mut self, file: File) -> Result<()>
pub fn stage_contents(&mut self, file: File, contents: Contents) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Repo
impl !RefUnwindSafe for Repo
impl !Send for Repo
impl !Sync for Repo
impl Unpin for Repo
impl !UnwindSafe for Repo
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