pub enum SubmoduleAction {
Add {
url: String,
path: Option<PathBuf>,
branch: Option<String>,
force: bool,
},
Init {
paths: Vec<PathBuf>,
},
Update {
init: bool,
recursive: bool,
remote: bool,
force: bool,
paths: Vec<PathBuf>,
},
Status {
cached: bool,
recursive: bool,
paths: Vec<PathBuf>,
},
Foreach {
command: String,
recursive: bool,
},
Deinit {
force: bool,
all: bool,
paths: Vec<PathBuf>,
},
Sync {
recursive: bool,
paths: Vec<PathBuf>,
},
}Expand description
Actions supported by git submodule.
Variants§
Add
git submodule add <url> [<path>].
Fields
Init
git submodule init [<paths>…].
Update
git submodule update [<options>] [<paths>…].
Fields
Status
git submodule status [<paths>…].
Fields
Foreach
git submodule foreach <cmd>.
Deinit
git submodule deinit <paths>.
Sync
git submodule sync [<paths>…].
Trait Implementations§
Source§impl Clone for SubmoduleAction
impl Clone for SubmoduleAction
Source§fn clone(&self) -> SubmoduleAction
fn clone(&self) -> SubmoduleAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SubmoduleAction
impl RefUnwindSafe for SubmoduleAction
impl Send for SubmoduleAction
impl Sync for SubmoduleAction
impl Unpin for SubmoduleAction
impl UnsafeUnpin for SubmoduleAction
impl UnwindSafe for SubmoduleAction
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