Type Alias radicle_git_ext::commit::Commit

source ·
pub type Commit = CommitData<Oid, Oid>;

Aliased Type§

struct Commit { /* private fields */ }

Implementations§

source§

impl Commit

source

pub fn read(repo: &Repository, oid: Oid) -> Result<Self, Read>

Read the Commit from the repo that is expected to be found at oid.

source

pub fn write(&self, repo: &Repository) -> Result<Oid, Write>

Write the given Commit to the repo. The resulting Oid is the identifier for this commit.

Trait Implementations§

source§

impl FromStr for Commit

source§

type Err = Parse

The associated error which can be returned from parsing.
source§

fn from_str(buffer: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl ToString for Commit

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl TryFrom<&[u8]> for Commit

source§

type Error = Parse

The type returned in the event of a conversion error.
source§

fn try_from(data: &[u8]) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Buf> for Commit

source§

type Error = Parse

The type returned in the event of a conversion error.
source§

fn try_from(value: Buf) -> Result<Self, Self::Error>

Performs the conversion.