diff options
author | HampusM <hampus@hampusmat.com> | 2021-06-25 13:21:56 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-06-25 13:21:56 +0200 |
commit | df341dc9b874f7e7bf99d9c1de3a84c49c4a04a6 (patch) | |
tree | fda4bcd92b9119bf4b95d393849d2f643eae8444 /packages/server/src/git/branch.ts | |
parent | a13786d6cc185822f5940582efde2349ef729145 (diff) |
Cleaned up the backend
Diffstat (limited to 'packages/server/src/git/branch.ts')
-rw-r--r-- | packages/server/src/git/branch.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/git/branch.ts b/packages/server/src/git/branch.ts index 2142724..90241a0 100644 --- a/packages/server/src/git/branch.ts +++ b/packages/server/src/git/branch.ts @@ -3,7 +3,7 @@ import { Reference } from "./reference"; import { Repository } from "./repository"; export class Branch extends Reference { - async latestCommit(): Promise<CommitSummary> { + public async latestCommit(): Promise<CommitSummary> { const latest_commit = this._owner.nodegitRepository.getBranchCommit(this._ng_reference); return { id: (await latest_commit).sha(), @@ -12,7 +12,7 @@ export class Branch extends Reference { }; } - static async lookup(owner: Repository, branch: string): Promise<Branch | null> { + public static async lookup(owner: Repository, branch: string): Promise<Branch | null> { const reference = await owner.nodegitRepository.getBranch(branch).catch(err => { if(err.errno === -3) { return null; |