Added Rebase

This commit is contained in:
Dolan
2017-06-07 00:32:24 +01:00
parent cc2fd5a8d8
commit 09e7e41519
3 changed files with 29 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ export { Oidarray } from './oid-array';
export { Oid } from './oid';
export { PushOptions } from './push-options';
export { RebaseOperation } from './rebase-operation';
export { Rebase, RebaseOptions } from './rebase';
export { Refdb } from './ref-db';
export { Reflog, ReflogEntry } from './ref-log'
export { Refspec } from './ref-spec';

27
types/nodegit/rebase.d.ts vendored Normal file
View File

@@ -0,0 +1,27 @@
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';
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, message_encoding: string, message: string): Oid;
finish(signature: Signature): number;
next(): Promise<RebaseOperation>;
operationByIndex(idx: number): RebaseOperation;
operationCurrent(): number;
operationEntrycount(): number;
}

View File

@@ -42,6 +42,7 @@
"oid.d.ts",
"push-options.d.ts",
"rebase-operation.d.ts",
"rebase.d.ts",
"ref-db.d.ts",
"ref-log.d.ts",
"ref-spec.d.ts",