pub struct MergeScope {
pub base: Tree,
pub ours: Tree,
pub theirs: Tree,
pub work: Tree,
pub subjects: Vec<String>,
pub unreadable: BTreeMap<String, String>,
pub irregular: BTreeSet<String>,
pub scope: String,
}Expand description
Everything the working-tree check needs: the three merge stages, the bytes on disk, the files the merge actually had to decide, and a sentence naming what was compared.
Fields§
§base: Tree§ours: Tree§theirs: Tree§work: TreeThe working tree, as it is right now.
subjects: Vec<String>Files BOTH sides changed, plus anything git still has unmerged.
unreadable: BTreeMap<String, String>Subjects a merge stage has but whose bytes could not be read, and why.
They are not in subjects: a file checked against a stage it could not
see would be checked against a guess. Each still gets a verdict.
irregular: BTreeSet<String>Subjects a merge stage has as a symlink or a submodule: not source, and
not in subjects.
scope: StringAuto Trait Implementations§
impl Freeze for MergeScope
impl RefUnwindSafe for MergeScope
impl Send for MergeScope
impl Sync for MergeScope
impl Unpin for MergeScope
impl UnsafeUnpin for MergeScope
impl UnwindSafe for MergeScope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more