pub struct TempSprout {
pub workingtree: WorkingTree,
pub tempdir: Option<TempDir>,
}Fields§
§workingtree: WorkingTree§tempdir: Option<TempDir>Implementations§
source§impl TempSprout
impl TempSprout
pub fn new( branch: &dyn Branch, additional_colocated_branches: Option<HashMap<String, String>>, ) -> Result<Self, BrzError>
pub fn new_in( branch: &dyn Branch, additional_colocated_branches: Option<HashMap<String, String>>, dir: &Path, ) -> Result<Self, BrzError>
pub fn new_in_path( branch: &dyn Branch, additional_colocated_branches: Option<HashMap<String, String>>, path: &Path, ) -> Result<Self, BrzError>
pub fn tree(&self) -> &WorkingTree
Methods from Deref<Target = WorkingTree>§
pub fn is_control_filename(&self, path: &Path) -> bool
sourcepub fn controldir(&self) -> ControlDir
pub fn controldir(&self) -> ControlDir
Return the control directory for this working tree.
pub fn basis_tree(&self) -> Result<RevisionTree, Error>
pub fn revision_tree( &self, revision_id: &RevisionId, ) -> Result<Box<RevisionTree>, Error>
pub fn get_tag_dict(&self) -> Result<HashMap<String, RevisionId>, Error>
pub fn abspath(&self, path: &Path) -> Result<PathBuf, Error>
pub fn relpath(&self, path: &Path) -> Result<PathBuf, Error>
pub fn supports_setting_file_ids(&self) -> bool
pub fn add(&self, paths: &[&Path]) -> Result<(), Error>
pub fn smart_add(&self, paths: &[&Path]) -> Result<(), Error>
pub fn build_commit(&self) -> CommitBuilder
pub fn commit( &self, message: &str, allow_pointless: Option<bool>, committer: Option<&str>, specific_files: Option<&[&Path]>, ) -> Result<RevisionId, Error>
👎Deprecated: Use build_commit instead
pub fn last_revision(&self) -> Result<RevisionId, Error>
pub fn pull( &self, source: &dyn Branch, overwrite: Option<bool>, stop_revision: Option<&RevisionId>, local: Option<bool>, ) -> Result<(), Error>
pub fn safe_relpath_files( &self, file_list: &[&Path], canonicalize: bool, apply_view: bool, ) -> Result<Vec<PathBuf>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TempSprout
impl !RefUnwindSafe for TempSprout
impl Send for TempSprout
impl Sync for TempSprout
impl Unpin for TempSprout
impl UnwindSafe for TempSprout
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