1 | import { DiffDelta } from './diff-delta';
|
2 | import { Tree } from './tree';
|
3 | import { Diff } from './diff';
|
4 | import { Repository } from './repository';
|
5 | import { Index } from './index';
|
6 | import { Strarray } from './str-array';
|
7 |
|
8 | export namespace Pathspec {
|
9 | const enum FLAG {
|
10 | DEFAULT = 0,
|
11 | IGNORE_CASE = 1,
|
12 | USE_CASE = 2,
|
13 | NO_GLOB = 4,
|
14 | NO_MATCH_ERROR = 8,
|
15 | FIND_FAILURES = 16,
|
16 | FAILURES_ONLY = 32,
|
17 | }
|
18 | }
|
19 |
|
20 | export class Pathspec {
|
21 | static matchListDiffEntry(m: any, pos: number): DiffDelta;
|
22 | static matchListEntry(m: any, pos: number): string;
|
23 | static matchListEntrycount(m: any): number;
|
24 | static matchListFailedEntry(m: any, pos: number): string;
|
25 | static matchListFailedEntrycount(m: any): number;
|
26 | static create(pathspec: Strarray | string | string[]): Pathspec;
|
27 |
|
28 | free(): void;
|
29 | matchDiff(diff: Diff, flags: number): Promise<any>;
|
30 | matchIndex(index: Index, flags: number): Promise<any>;
|
31 | matchTree(tree: Tree, flags: number): Promise<any>;
|
32 | matchWorkdir(repo: Repository, flags: number): Promise<any>;
|
33 | matchesPath(flags: number, path: string): number;
|
34 | }
|