Struct git_repository::easy::Commit
source · [−]Expand description
A decoded commit object with access to its owning repository.
Please note that the limitations described in Object apply here as well.
Fields
id: ObjectId
The id of the commit
data: Vec<u8>
The fully decoded commit data
Implementations
Parse the commits message into a MessageRef
, after decoding the entire commit object.
Decode the entire commit object in full and return the raw message bytes.
Decode the entire commit object and return it for accessing all commit information.
Note that the returned commit object doesn’t make object lookup easy but should be used for successive calls to string-ish information to avoid decoding the object unnecessarily.
Parse the commit and return the the tree object it points to.