Struct git_commitgraph::file::commit::Commit[][src]

pub struct Commit<'a> { /* fields omitted */ }
Expand description

A commit as stored in a File.

Implementations

Returns the committer timestamp of this commit.

The value is the number of seconds since 1970-01-01 00:00:00 UTC.

Returns the generation number of this commit.

Commits without parents have generation number 1. Commits with parents have a generation number that is the max of their parents’ generation numbers + 1.

Returns an iterator over the parent positions for lookup in the owning Graph.

Returns the hash of this commit.

Returns the first parent of this commit.

Returns the position at which this commit is stored in the parent File.

Return the hash of the tree this commit points to.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.