aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/git/commit.ts
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-27 13:18:42 +0200
committerHampusM <hampus@hampusmat.com>2021-07-27 13:18:42 +0200
commitf6a5fe05c887a658c20257d2ef6bf2780f792873 (patch)
tree9ee4b42ed04b3fe7decdac10b20ec96ca764d378 /packages/server/src/git/commit.ts
parent69c58c94bd8cc0d469ae301931d4571aca84851a (diff)
Refactored the backend a bit & added TSDoc/JSDoc comments to the diff class
Diffstat (limited to 'packages/server/src/git/commit.ts')
-rw-r--r--packages/server/src/git/commit.ts6
1 files changed, 3 insertions, 3 deletions
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<Commit> {
- 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<boolean> {
- 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<Commit> {
- return new Commit(owner, await owner.nodegitRepository.getMasterCommit());
+ return new Commit(owner, await owner.ng_repository.getMasterCommit());
}
} \ No newline at end of file