findCommit
Lookup a reference to one of the commits in a repository.
Returns null
if the commit does not exist.
Signature
ts
class Repository {
findCommit(oid: string): Commit | null;
}
Parameters
- oidrequired · string
Commit ID(SHA1) to lookup.
Returns
- null | Commit
Commit instance found by oid. Returns
null
if the commit does not exist.