Struct git_commit::Commit

source ·
pub struct Commit { /* private fields */ }
Expand description

A git commit in its object description form, i.e. the output of git cat-file for a commit object.

Implementations

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

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

The tree Oid this commit points to.

The parent Oids of this commit.

The author of this commit, i.e. the header corresponding to author.

The committer of this commit, i.e. the header corresponding to committer.

The message body of this commit.

The Signatures found in this commit, i.e. the headers corresponding to gpgsig.

The Headers found in this commit.

Note: these do not include tree, parent, author, and committer.

Iterate over the Headers values that match the provided name.

Push a header to the end of the headers section.

Trait Implementations

Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
Converts the given value to a String. Read more
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.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.