UNPKG

779 BTypeScriptView Raw
1import { Repository } from './repository';
2import { Oid } from './oid';
3import { Reference } from './reference';
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 free(): void;
18 id(): Oid;
19}