libgit2_d.pack

Undocumented in source.

Members

Aliases

git_packbuilder_foreach_cb
alias git_packbuilder_foreach_cb = int function(void* buf, size_t size, void* payload)

Callback used to iterate over packed objects

git_packbuilder_progress
alias git_packbuilder_progress = int function(int stage, uint current, uint total, void* payload)

Packbuilder progress notification function

Enums

GIT_PACKBUILDER_ADDING_OBJECTS
anonymousenum GIT_PACKBUILDER_ADDING_OBJECTS
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_packbuilder_stage_t
enum git_packbuilder_stage_t

Stages that are reported by the packbuilder progress callback.

Functions

git_packbuilder_foreach
int git_packbuilder_foreach(libgit2_d.types.git_packbuilder* pb, .git_packbuilder_foreach_cb cb, void* payload)

Create the new pack and pass each object to the callback

git_packbuilder_free
void git_packbuilder_free(libgit2_d.types.git_packbuilder* pb)

Free the packbuilder and all associated data

git_packbuilder_hash
const(libgit2_d.oid.git_oid)* git_packbuilder_hash(libgit2_d.types.git_packbuilder* pb)

Get the packfile's hash

git_packbuilder_insert
int git_packbuilder_insert(libgit2_d.types.git_packbuilder* pb, const(libgit2_d.oid.git_oid)* id, const(char)* name)

Insert a single object

git_packbuilder_insert_commit
int git_packbuilder_insert_commit(libgit2_d.types.git_packbuilder* pb, const(libgit2_d.oid.git_oid)* id)

Insert a commit object

git_packbuilder_insert_recur
int git_packbuilder_insert_recur(libgit2_d.types.git_packbuilder* pb, const(libgit2_d.oid.git_oid)* id, const(char)* name)

Recursively insert an object and its referenced objects

git_packbuilder_insert_tree
int git_packbuilder_insert_tree(libgit2_d.types.git_packbuilder* pb, const(libgit2_d.oid.git_oid)* id)

Insert a root tree object

git_packbuilder_insert_walk
int git_packbuilder_insert_walk(libgit2_d.types.git_packbuilder* pb, libgit2_d.types.git_revwalk* walk)

Insert objects as given by the walk

git_packbuilder_new
int git_packbuilder_new(libgit2_d.types.git_packbuilder** out_, libgit2_d.types.git_repository* repo)

Initialize a new packbuilder

git_packbuilder_object_count
size_t git_packbuilder_object_count(libgit2_d.types.git_packbuilder* pb)

Get the total number of objects the packbuilder will write out

git_packbuilder_set_callbacks
int git_packbuilder_set_callbacks(libgit2_d.types.git_packbuilder* pb, .git_packbuilder_progress progress_cb, void* progress_cb_payload)

Set the callbacks for a packbuilder

git_packbuilder_set_threads
uint git_packbuilder_set_threads(libgit2_d.types.git_packbuilder* pb, uint n)

Set number of threads to spawn

git_packbuilder_write
int git_packbuilder_write(libgit2_d.types.git_packbuilder* pb, const(char)* path, uint mode, libgit2_d.indexer.git_indexer_progress_cb progress_cb, void* progress_cb_payload)

Write the new pack and corresponding index file to path.

git_packbuilder_write_buf
int git_packbuilder_write_buf(libgit2_d.buffer.git_buf* buf, libgit2_d.types.git_packbuilder* pb)

Write the contents of the packfile to an in-memory buffer

git_packbuilder_written
size_t git_packbuilder_written(libgit2_d.types.git_packbuilder* pb)

Get the number of objects the packbuilder has already written out

Meta