pub struct ConflictedFile {
pub path: String,
pub base: Option<String>,
pub ours: Option<String>,
pub theirs: Option<String>,
}Expand description
一个处于冲突状态的文件及其在 index 中的 stage 分布。
各 stage 记录 blob oid(缺失该 stage 时为 None),
供 Git::read_blobs 单进程批量读取内容。
Fields§
§path: String相对仓库根目录的路径
base: Option<String>stage 1(base)的 blob oid;add/add 冲突时缺失
ours: Option<String>stage 2(ours)的 blob oid;对方删除本方修改时才缺失本方
theirs: Option<String>stage 3(theirs)的 blob oid
Trait Implementations§
Source§impl Clone for ConflictedFile
impl Clone for ConflictedFile
Source§fn clone(&self) -> ConflictedFile
fn clone(&self) -> ConflictedFile
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 moreSource§impl Debug for ConflictedFile
impl Debug for ConflictedFile
impl Eq for ConflictedFile
Source§impl PartialEq for ConflictedFile
impl PartialEq for ConflictedFile
impl StructuralPartialEq for ConflictedFile
Auto Trait Implementations§
impl Freeze for ConflictedFile
impl RefUnwindSafe for ConflictedFile
impl Send for ConflictedFile
impl Sync for ConflictedFile
impl Unpin for ConflictedFile
impl UnsafeUnpin for ConflictedFile
impl UnwindSafe for ConflictedFile
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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