class
Agate::AnnotatedCommit
- Agate::AnnotatedCommit
- Reference
- Object
Overview
An annotated commit for merge analysis and rebase operations.
Defined in:
agate/annotated_commit.crConstructors
-
.from_ref(repo : Repository, ref : Reference) : AnnotatedCommit
Creates an annotated commit from a reference.
-
.from_revspec(repo : Repository, spec : String) : AnnotatedCommit
Creates an annotated commit from a revision spec string.
-
.lookup(repo : Repository, oid : OID) : AnnotatedCommit
Looks up an annotated commit by OID.
Class Method Summary
-
.from_ref?(repo : Repository, ref : Reference) : AnnotatedCommit | Nil
Creates an annotated commit from a reference, returning nil on failure.
-
.from_revspec?(repo : Repository, spec : String) : AnnotatedCommit | Nil
Creates an annotated commit from a revision spec, returning nil on failure.
-
.lookup?(repo : Repository, oid : OID) : AnnotatedCommit | Nil
Looks up an annotated commit by OID, returning nil if not found.
Instance Method Summary
-
#oid : OID
Returns the OID of this annotated commit.
-
#ref : String | Nil
Returns the reference name, or nil if created from OID/revspec.
Constructor Detail
Creates an annotated commit from a reference. Raises on failure.
Creates an annotated commit from a revision spec string. Raises on failure.
Looks up an annotated commit by OID. Raises on failure.
Class Method Detail
Creates an annotated commit from a reference, returning nil on failure.
Creates an annotated commit from a revision spec, returning nil on failure.
Looks up an annotated commit by OID, returning nil if not found.