mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
786 B
TypeScript
22 lines
786 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;
|
|
[key: string]: any;
|
|
}
|
|
|
|
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>;
|
|
}
|