pub enum Update {
Checkout,
Rebase,
Merge,
Command(BString),
None,
}
Expand description
Determine how git submodule update
should deal with this submodule to bring it up-to-date with the
super-project’s expectations.
Variants§
Checkout
The commit recorded in the superproject should be checked out on a detached HEAD
.
Rebase
The current branch in the submodule will be rebased onto the commit recorded in the superproject.
Merge
The commit recorded in the superproject will merged into the current branch of the submodule.
Command(BString)
A custom command to be called like <command> hash-of-submodule-commit
that is to be executed to
perform the submodule update.
Note that this variant is only allowed if the value is coming from an override. Thus it’s not allowed to distribute
arbitrary commands via .gitmodules
for security reasons.
None
The submodule update is not performed at all.
Trait Implementations§
source§impl Ord for Update
impl Ord for Update
source§impl PartialOrd for Update
impl PartialOrd for Update
impl Eq for Update
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnwindSafe for Update
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)