1.0.7 • Published 4 years ago

@skypilot/nodegit-tools v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

@skypilot/nodegit-tools

build  npm stable  npm next  license: ISC

A collection of utilities for working with NodeGit

Functions

Commit functions

findCommitByBranchName

async findCommitByBranchName(branchName: string, { repository?: Repository }): Promise<Commit>

findCommitByOid

async findCommitByOid(oid: Oid, { repository?: Repository }): Promise<Commit>

findCommitByReference

async findCommitByReference(reference: Reference, { repository?: Repository }): Promise<Commit>

findCommitBySha

async findCommitBySha(sha: string, { repository?: Repository }): Promise<Commit>

findCommitByTagName

async findCommitByTagName(tagName: string, { repository?: Repository }): Promise<Commit>

findRangeOfCommitsByOid

async findRangeOfCommitsByOid(newestOid: Oid, oldestOid: Oid, { repository?: Repository }): Promise<Commit[]>

findRangeOfCommitsBySha

async findRangeOfCommitsBySha(newestSha: string, oldestSha: string, { repository?: Repository }): Promise<Commit[]>

getCommitOid

getCommitOid(commit: Commit): Oid

getCommitRecord

getCommitRecord(commit: Commit): { date: Date, message: string, sha: string } 

retrieveHeadCommit

async retrieveHeadCommit({ repository?: Repository }): Promise<Commit>

Oid (object ID) functions

findMergeBaseOid

async findMergBaseOid(oidA: Oid, oidB: Oid, { repository?: Repository }): Promise<Oid>

findOidBySha

async findOidBySha(sha: string, { repository?: Repository }): Promise<Oid>

getOidSha

getOidSha(oid: Oid): string

Reference functions

findReferenceByTagName

async findReferenceByTagName(tagName: string, { repository?: Repository }): Promise<Reference>

getReferenceShorthand

getReferenceShorthand(reference: Reference): string

retrieveCurrentBranchName

async retrieveCurrentBranchName({ repository?: Repository }): Promise<Reference>

retrieveCurrentBranchReference

async retrieveCurrentBranchReference({ repository?: Repository }): Promise<Reference>

Repo functions

openRepo

async openRepository({ path?: string }): Promise<Repository>

Tag functions

async retrieveTagNames({ repository?: Repository }): Promise<string[]>
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.7-next.0

4 years ago

1.0.6-next.0

4 years ago

1.0.5-next.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.1-next.0

4 years ago

1.0.0

4 years ago

1.0.0-alpha.0

4 years ago

0.1.5-alpha.3

4 years ago

0.1.5-alpha.2

4 years ago

0.1.1-next

4 years ago

0.1.3-alpha

4 years ago

0.1.5-alpha

4 years ago

0.1.5-alpha.1

4 years ago

0.1.2-alpha

4 years ago

0.1.5-alpha.0

4 years ago

0.1.4-alpha

4 years ago

0.1.0-next

4 years ago