mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Added Revert
This commit is contained in:
17
types/nodegit/revert.d.ts
vendored
Normal file
17
types/nodegit/revert.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { MergeOptions } from './merge-options';
|
||||
import { CheckoutOptions } from './checkout-options';
|
||||
import { Repository } from './repository';
|
||||
import { Commit } from './commit';
|
||||
import { Index } from './index';
|
||||
|
||||
export interface RevertOptions {
|
||||
version: number;
|
||||
mainline: number;
|
||||
mergeOpts: MergeOptions;
|
||||
checkoutOpts: CheckoutOptions;
|
||||
}
|
||||
|
||||
export class Revert {
|
||||
static revert(repo: Repository, commit: Commit, given_opts: RevertOptions): Promise<number>;
|
||||
static commit(repo: Repository, revert_commit: Commit, our_commit: Commit, mainline: number, merge_options: MergeOptions): Promise<Index>;
|
||||
}
|
||||
Reference in New Issue
Block a user