Added Revert

This commit is contained in:
Dolan
2017-06-06 23:32:39 +01:00
parent 441c41158e
commit 332dd08479
3 changed files with 19 additions and 0 deletions

17
types/nodegit/revert.d.ts vendored Normal file
View 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>;
}