Added Packbuilder

This commit is contained in:
Dolan
2017-06-07 00:52:15 +01:00
parent 73b4969fa0
commit bdd0f86ce7
3 changed files with 27 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ export { OdbObject } from './odb-object';
export { Odb } from './odb';
export { Oidarray } from './oid-array';
export { Oid } from './oid';
export { Packbuilder } from './pack-builder';
export { Pathspec } from './path-spec';
export { PushOptions } from './push-options';
export { PushUpdate } from './push-update';

25
types/nodegit/pack-builder.d.ts vendored Normal file
View File

@@ -0,0 +1,25 @@
import { Repository } from './repository';
import { Oid } from './oid';
import { Revwalk } from './rev-walk';
export namespace Packbuilder {
enum STAGE {
ADDING_OBJECTS = 0,
DELTAFICATION = 1
}
}
export class Packbuilder {
static create(repo: Repository): Packbuilder;
free(): void;
hash(): Oid;
insert(id: Oid, name: string): number;
insertCommit(id: Oid): number;
insertRecur(id: Oid, name: string): number;
insertTree(id: Oid): number;
insertWalk(walk: Revwalk): number;
objectCount(): number;
setThreads(n: number): number;
written(): number;
}

View File

@@ -40,6 +40,7 @@
"odb.d.ts",
"oid-array.d.ts",
"oid.d.ts",
"path-builder.d.ts",
"path-spec.d.ts",
"push-options.d.ts",
"push-update.d.ts",