mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
756 B
TypeScript
21 lines
756 B
TypeScript
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, givenOpts: RevertOptions): Promise<number>;
|
|
/**
|
|
* Reverts the given commit against the given "our" commit, producing an index that reflects the result of the revert.
|
|
*/
|
|
static commit(repo: Repository, revertCommit: Commit, ourCommit: Commit, mainline: number, mergeOptions: MergeOptions): Promise<Index>;
|
|
}
|