From bf5f2294ca8ec46c463511f2b9c45d485f26d8e3 Mon Sep 17 00:00:00 2001 From: Dolan Date: Wed, 7 Jun 2017 00:27:58 +0100 Subject: [PATCH] Added RebaseOpertation --- types/nodegit/index.d.ts | 3 ++- types/nodegit/rebase-operation.d.ts | 18 ++++++++++++++++++ types/nodegit/tsconfig.json | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 types/nodegit/rebase-operation.d.ts diff --git a/types/nodegit/index.d.ts b/types/nodegit/index.d.ts index 79c6d60c54..4305b092ac 100644 --- a/types/nodegit/index.d.ts +++ b/types/nodegit/index.d.ts @@ -27,9 +27,10 @@ export { Odb } from './odb'; export { Oidarray } from './oid-array'; export { Oid } from './oid'; export { PushOptions } from './push-options'; +export { RebaseOperation } from './rebase-operation'; export { Refdb } from './ref-db'; export { Reflog, ReflogEntry } from './ref-log' -import { Refspec } from './ref-spec'; +export { Refspec } from './ref-spec'; export { Reference } from './reference'; export { RemoteCallbacks } from './remote-callbacks'; export { Remote } from './remote'; diff --git a/types/nodegit/rebase-operation.d.ts b/types/nodegit/rebase-operation.d.ts new file mode 100644 index 0000000000..a6e6e53bfa --- /dev/null +++ b/types/nodegit/rebase-operation.d.ts @@ -0,0 +1,18 @@ +import { Oid } from './oid'; + +export namespace RebaseOperation { + enum REBASE_OPERATION { + PICK = 0, + REWORD = 1, + EDIT = 2, + SQUASH = 3, + FIXUP = 4, + EXEC = 5 + } +} + +export class RebaseOperation { + type: number; + id: Oid; + exec: string; +} diff --git a/types/nodegit/tsconfig.json b/types/nodegit/tsconfig.json index 7dba399bca..0d52815cb5 100644 --- a/types/nodegit/tsconfig.json +++ b/types/nodegit/tsconfig.json @@ -41,6 +41,7 @@ "oid-array.d.ts", "oid.d.ts", "push-options.d.ts", + "rebase-operation.d.ts", "ref-db.d.ts", "ref-log.d.ts", "ref-spec.d.ts",