Struct branchless::core::mergebase::MergeBaseDb[][src]

pub struct MergeBaseDb<'conn> { /* fields omitted */ }
Expand description

On-disk cache for merge-base queries.

Implementations

Constructor.

Get the merge-base for two given commits.

If the query is already in the cache, return the cached result. If not, it is computed, cached, and returned.

Args:

  • repo: The Git repo.
  • lhs_oid: The first OID (ordering is arbitrary).
  • rhs_oid: The second OID (ordering is arbitrary).

Returns: The merge-base OID for these two commits. Returns None if no merge-base could be found.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Calls the given closure and return the result. Read more

Calls the given closure on self.

Calls the given closure on self.

Calls the given closure if condition == true.