mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
696 B
TypeScript
20 lines
696 B
TypeScript
import { AnnotatedCommit } from './annotated-commit';
|
|
import { Repository } from './repository';
|
|
import { Object } from './object';
|
|
import { Strarray } from './str-array';
|
|
import { CheckoutOptions } from './checkout-options';
|
|
|
|
export namespace Reset {
|
|
enum TYPE {
|
|
SOFT = 1,
|
|
MIXED = 2,
|
|
HARD = 3
|
|
}
|
|
}
|
|
|
|
export class Reset {
|
|
static reset(repo: Repository, target: Object, reset_type: number, checkout_opts: CheckoutOptions): Promise<number>;
|
|
static default(repo: Repository, target: Object, pathspecs: Strarray): Promise<number>;
|
|
static fromAnnotated(repo: Repository, commit: AnnotatedCommit, reset_type: number, checkout_opts: CheckoutOptions): number;
|
|
}
|