Type Alias Commit

Source
pub type Commit = CommitData<Oid, Oid>;

Aliased Type§

pub 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 Display for Commit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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 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.