pub struct Repository {
pub pristine: Pristine,
pub changes: FileSystem,
pub working_copy: FileSystem,
pub config: Config,
pub path: PathBuf,
pub changes_dir: PathBuf,
}
Fields§
§pristine: Pristine
§changes: FileSystem
§working_copy: FileSystem
§config: Config
§path: PathBuf
§changes_dir: PathBuf
Implementations§
Source§impl Repository
impl Repository
pub fn find_root(cur: Option<PathBuf>) -> Result<Self, Error>
pub fn find_root_with_dot_dir( cur: Option<PathBuf>, dot_dir: &str, ) -> Result<Self, Error>
pub fn init( path: Option<PathBuf>, kind: Option<&str>, remote: Option<&str>, ) -> Result<Self, Error>
pub fn update_config(&self) -> Result<(), Error>
Auto Trait Implementations§
impl !Freeze for Repository
impl !RefUnwindSafe for Repository
impl Send for Repository
impl !Sync for Repository
impl Unpin for Repository
impl !UnwindSafe for Repository
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