diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-26 23:56:53 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-26 23:56:53 +0200 |
commit | 09ff261f156a8599d45c1496fe246ded6e035191 (patch) | |
tree | 306f79709da372b562eca70d356fa25afcde1f95 /packages/server/src/git/reference.ts | |
parent | c575df758b269db8e05c597d5870e948771d4c2b (diff) |
Added backend TSDoc/JSDoc comments & refactored a tiny bit
Diffstat (limited to 'packages/server/src/git/reference.ts')
-rw-r--r-- | packages/server/src/git/reference.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/server/src/git/reference.ts b/packages/server/src/git/reference.ts index b24f72d..4f4f5a0 100644 --- a/packages/server/src/git/reference.ts +++ b/packages/server/src/git/reference.ts @@ -11,6 +11,9 @@ export function isNodeGitReferenceTag(ref: NodeGitReference): boolean { return Boolean(ref.isTag()); } +/** + * A representation of a reference + */ export abstract class Reference { protected _ng_reference: NodeGitReference; protected _owner: Repository; @@ -18,6 +21,10 @@ export abstract class Reference { public id: string; public name: string; + /** + * @param owner - The repository which the reference is in + * @param reference - An instance of a Nodegit reference + */ constructor(owner: Repository, reference: NodeGitReference) { this._ng_reference = reference; this._owner = owner; |