Representation of a commit with information useful for commit checks.
The parents of the commit.
Information about files that changed in this commit.
The identity of the author.
The identity of the commiter.
Create a new commit from the given context for the SHA1.
Deprecating in 2.3.0:
please use the Content::modified_files
trait method instead
Return a vector of files changed by the commit.
This excludes paths which are either not actually files (e.g., submodules and symlinks), as
well as paths which were deleted in this commit.
Get the patch difference for the given path.
A workarea which may be used to work on the content.
The SHA1 of the commit (if the content is of a commit).
The differences in the content.
Get the patch difference for the given path.
Return a vector of files modified in a diff. Read more
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static