OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::core::find_common_ancestor_fn Struct Reference

Function object to find a common ancestor for two commits. More...

#include <commit.hpp>

Public Member Functions

maybe< oid_toperator() (const connection_ptr &conn, const oid_t &lhs, const oid_t &rhs) const

Detailed Description

Function object to find a common ancestor for two commits.

This functor provides an interface to find the common ancestor of two commits

Member Function Documentation

◆ operator()()

maybe< oid_t > oxy::core::find_common_ancestor_fn::operator() ( const connection_ptr & conn,
const oid_t & lhs,
const oid_t & rhs ) const
Parameters
conn- A pointer to the database (container) connection from which to find the common ancestor.
lhs- The OID of the first commit.
rhs- The OID of the second commit.
Returns
A maybe<oid_t> containing the OID of the common ancestor commit if found, or