Enum gix_submodule::config::Update
source · 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 PartialEq for Update
impl PartialEq for Update
source§impl PartialOrd for Update
impl PartialOrd for Update
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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