UNPKG

596 BTypeScriptView Raw
1import { ApplyOptions } from './apply-options';
2import { Diff } from './diff';
3import { Index } from './index_';
4import { Repository } from './repository';
5import { Tree } from './tree';
6
7export namespace Apply {
8 const enum FLAGS {
9 CHECK = 1,
10 }
11
12 const enum LOCATION {
13 WORKDIR = 0,
14 INDEX = 1,
15 BOTH = 2,
16 }
17}
18
19export class Apply {
20 static apply(repo: Repository, diff: Diff, location: Apply.LOCATION, options: ApplyOptions): Promise<number>;
21 static toTree(repo: Repository, preimage: Tree, diff: Diff, options: ApplyOptions): Promise<Index>;
22}