pub enum Mode {
ToGit,
Renormalize,
}
Expand description
The specific way to convert a resource.
Variants§
ToGit
Prepare resources as they are stored in git
.
This is naturally the case when object-ids are used, but a conversion is needed when data is read from a worktree.
Renormalize
For sources that are object-ids, convert them to what would be stored in the worktree, and back to what would be stored in Git.
Sources that are located in a worktree are merely converted to what would be stored in Git.
This is useful to prevent merge conflicts due to inconcistent whitespace.
Trait Implementations§
Source§impl Ord for Mode
impl Ord for Mode
Source§impl PartialOrd for Mode
impl PartialOrd for Mode
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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