1 | import { Diff } from "./diff";
|
2 | import { DiffDelta } from "./diff-delta";
|
3 | import { Index } from "./index";
|
4 | import { Repository } from "./repository";
|
5 | import { Strarray } from "./str-array";
|
6 | import { Tree } from "./tree";
|
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 | matchDiff(diff: Diff, flags: number): Promise<any>;
|
29 | matchIndex(index: Index, flags: number): Promise<any>;
|
30 | matchTree(tree: Tree, flags: number): Promise<any>;
|
31 | matchWorkdir(repo: Repository, flags: number): Promise<any>;
|
32 | matchesPath(flags: number, path: string): number;
|
33 | }
|