UNPKG

761 BTypeScriptView Raw
1import { Oid } from "./oid";
2import { Reference } from "./reference";
3import { Repository } from "./repository";
4
5export class AnnotatedCommit {
6 /**
7 * @param repo - repository that contains the given commit
8 * @param branchName - name of the (remote) branch
9 * @param remoteUrl - url of the remote
10 * @param id - the commit object id of the remote branch
11 */
12 static fromFetchhead(repo: Repository, branchName: string, remoteUrl: string, id: Oid): Promise<AnnotatedCommit>;
13 static fromRef(repo: Repository, ref: Reference): Promise<AnnotatedCommit>;
14 static fromRevspec(repo: Repository, revspec: string): Promise<AnnotatedCommit>;
15 static lookup(repo: Repository, id: Oid): Promise<AnnotatedCommit>;
16
17 id(): Oid;
18}