mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { CheckoutOptions } from './checkout-options';
|
|
import { AnnotatedCommit } from './annotated-commit';
|
|
import { Repository } from './repository';
|
|
import { Signature } from './signature';
|
|
import { Oid } from './oid';
|
|
import { RebaseOperation } from './rebase-operation';
|
|
import { Index } from './index';
|
|
|
|
export interface RebaseOptions {
|
|
version: number;
|
|
quiet: number;
|
|
rewriteNotesRef: string;
|
|
checkoutOptions: CheckoutOptions;
|
|
}
|
|
|
|
export class Rebase {
|
|
static init(repo: Repository, branch: AnnotatedCommit, upstream: AnnotatedCommit, onto: AnnotatedCommit, opts?: RebaseOptions): Promise<Rebase>;
|
|
static initOptions(opts: RebaseOptions, version: number): number;
|
|
static open(repo: Repository, opts?: RebaseOptions): Promise<Rebase>;
|
|
|
|
abort(): number;
|
|
commit(author: Signature, committer: Signature, messageEncoding: string, message: string): Oid;
|
|
finish(signature: Signature): number;
|
|
inmemoryIndex(index: Index): number;
|
|
next(): Promise<RebaseOperation>;
|
|
operationByIndex(idx: number): RebaseOperation;
|
|
operationCurrent(): number;
|
|
operationEntrycount(): number;
|
|
}
|