mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Added Packbuilder
This commit is contained in:
1
types/nodegit/index.d.ts
vendored
1
types/nodegit/index.d.ts
vendored
@@ -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
25
types/nodegit/pack-builder.d.ts
vendored
Normal 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;
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user