pub struct GitLocal { /* private fields */ }Implementations§
Source§impl GitLocal
impl GitLocal
pub fn init(path: &str) -> Result<Repository>
pub fn remote_add_origin(repo_path: &str, url: &str) -> Result<()>
pub fn add_all(path: &str) -> Result<()>
pub fn commit(path: &str, message: &str) -> Result<()>
pub fn push( repo_path: &str, local_branch: Branch, remote_branch: Branch, token: &str, ) -> Result<()>
pub fn submodule_add( repo_path: &str, remote_url: &str, path: &str, ) -> Result<()>
pub fn submodule_update(repo_path: &str) -> Result<()>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitLocal
impl<'de> Deserialize<'de> for GitLocal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GitLocal
impl RefUnwindSafe for GitLocal
impl Send for GitLocal
impl Sync for GitLocal
impl Unpin for GitLocal
impl UnwindSafe for GitLocal
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