1 | import { ApplyOptions } from './apply-options';
|
2 | import { Diff } from './diff';
|
3 | import { Index } from './index_';
|
4 | import { Repository } from './repository';
|
5 | import { Tree } from './tree';
|
6 |
|
7 | export 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 |
|
19 | export 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 | }
|