From f6a5fe05c887a658c20257d2ef6bf2780f792873 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 27 Jul 2021 13:18:42 +0200 Subject: Refactored the backend a bit & added TSDoc/JSDoc comments to the diff class --- packages/server/src/git/commit.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/server/src/git/commit.ts') diff --git a/packages/server/src/git/commit.ts b/packages/server/src/git/commit.ts index c49e5ec..8cf4282 100644 --- a/packages/server/src/git/commit.ts +++ b/packages/server/src/git/commit.ts @@ -86,7 +86,7 @@ export class Commit { * @returns An instance of a commit */ public static async lookup(repository: Repository, id: string | NodeGitOid): Promise { - const commit = await NodeGitCommit.lookup(repository.nodegitRepository, id instanceof NodeGitOid ? id : NodeGitOid.fromString(id)); + const commit = await NodeGitCommit.lookup(repository.ng_repository, id instanceof NodeGitOid ? id : NodeGitOid.fromString(id)); return new Commit(repository, commit); } @@ -98,7 +98,7 @@ export class Commit { * @returns Whether or not the commit exists */ public static lookupExists(repository: Repository, id: string): Promise { - return NodeGitCommit.lookup(repository.nodegitRepository, NodeGitOid.fromString(id)) + return NodeGitCommit.lookup(repository.ng_repository, NodeGitOid.fromString(id)) .then(() => true) .catch(() => false); } @@ -110,6 +110,6 @@ export class Commit { * @returns An instance of a commit */ public static async masterCommit(owner: Repository): Promise { - return new Commit(owner, await owner.nodegitRepository.getMasterCommit()); + return new Commit(owner, await owner.ng_repository.getMasterCommit()); } } \ No newline at end of file -- cgit v1.2.3-18-g5258