A collection of utilities for working with NodeGit
npm install @skypilot/nodegit-tools![build]()



A collection of utilities for working with NodeGit
#### findCommitByBranchName
```
async findCommitByBranchName(branchName: string, { repository?: Repository }): Promise
#### findCommitByOid
``
async findCommitByOid(oid: Oid, { repository?: Repository }): Promise
#### findCommitByReference
``
async findCommitByReference(reference: Reference, { repository?: Repository }): Promise
#### findCommitBySha
``
async findCommitBySha(sha: string, { repository?: Repository }): Promise
#### findCommitByTagName
``
async findCommitByTagName(tagName: string, { repository?: Repository }): Promise
#### findRangeOfCommitsByOid
``
async findRangeOfCommitsByOid(newestOid: Oid, oldestOid: Oid, { repository?: Repository }): Promise
#### findRangeOfCommitsBySha
``
async findRangeOfCommitsBySha(newestSha: string, oldestSha: string, { repository?: Repository }): Promise
#### getCommitOid
``
getCommitOid(commit: Commit): Oid
#### getCommitRecord
``
getCommitRecord(commit: Commit): { date: Date, message: string, sha: string }
#### retrieveHeadCommit
``
async retrieveHeadCommit({ repository?: Repository }): Promise
#### findMergeBaseOid
``
async findMergBaseOid(oidA: Oid, oidB: Oid, { repository?: Repository }): Promise
#### findOidBySha
``
async findOidBySha(sha: string, { repository?: Repository }): Promise
#### getOidSha
``
getOidSha(oid: Oid): string
#### findReferenceByTagName
``
async findReferenceByTagName(tagName: string, { repository?: Repository }): Promise
#### getReferenceShorthand
``
getReferenceShorthand(reference: Reference): string
#### retrieveCurrentBranchName
``
async retrieveCurrentBranchName({ repository?: Repository }): Promise
#### retrieveCurrentBranchReference
``
async retrieveCurrentBranchReference({ repository?: Repository }): Promise
#### openRepo
``
async openRepository({ path?: string }): Promise
```
async retrieveTagNames({ repository?: Repository }): Promise