pub struct Merger<'a> {
pub new: NewObjects,
/* private fields */
}Expand description
The tree merge over one repository.
Fields§
§new: NewObjectsWhat the merge made.
Implementations§
Source§impl<'a> Merger<'a>
impl<'a> Merger<'a>
Sourcepub fn new(git: &'a dyn GitServe, hash: HashKind, encrypted: bool) -> Self
pub fn new(git: &'a dyn GitServe, hash: HashKind, encrypted: bool) -> Self
A merger over git, in hash.
Sourcepub fn merge_trees(
&mut self,
base: Option<&ObjectId>,
ours: &ObjectId,
theirs: &ObjectId,
) -> Result<TreeMerge, EngineError>
pub fn merge_trees( &mut self, base: Option<&ObjectId>, ours: &ObjectId, theirs: &ObjectId, ) -> Result<TreeMerge, EngineError>
Merge theirs into ours over base (root trees). base is None for an
add/add of a whole directory.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Merger<'a>
impl<'a> !UnwindSafe for Merger<'a>
impl<'a> Freeze for Merger<'a>
impl<'a> Send for Merger<'a>
impl<'a> Sync for Merger<'a>
impl<'a> Unpin for Merger<'a>
impl<'a> UnsafeUnpin for Merger<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request