1 | import { AnnotatedCommit } from "./annotated-commit";
|
2 | import { CheckoutOptions } from "./checkout-options";
|
3 | import { Commit } from "./commit";
|
4 | import { Repository } from "./repository";
|
5 | import { Strarray } from "./str-array";
|
6 | import { Tag } from "./tag";
|
7 |
|
8 | export namespace Reset {
|
9 | const enum TYPE {
|
10 | SOFT = 1,
|
11 | MIXED = 2,
|
12 | HARD = 3,
|
13 | }
|
14 | }
|
15 |
|
16 | export class Reset {
|
17 | |
18 |
|
19 |
|
20 | static reset(
|
21 | repo: Repository,
|
22 | target: Commit | Tag,
|
23 | resetType: Reset.TYPE,
|
24 | checkoutOpts?: CheckoutOptions,
|
25 | ): Promise<void>;
|
26 | |
27 |
|
28 |
|
29 | static default(repo: Repository, target: Commit | Tag, pathspecs: Strarray | string | string[]): Promise<number>;
|
30 | |
31 |
|
32 |
|
33 |
|
34 |
|
35 | static fromAnnotated(
|
36 | repo: Repository,
|
37 | commit: AnnotatedCommit,
|
38 | resetType: number,
|
39 | checkoutOpts: CheckoutOptions,
|
40 | ): number;
|
41 | }
|