aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/git/reference.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/git/reference.ts')
-rw-r--r--packages/server/src/git/reference.ts7
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;