libgit2_d.blob

Undocumented in source.

Members

Enums

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

Flags to control the functionality of git_blob_filter.

Functions

GIT_BLOB_FILTER_OPTIONS_INIT
GIT_BLOB_FILTER_OPTIONS_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_blob_create_from_buffer
int git_blob_create_from_buffer(libgit2_d.oid.git_oid* id, libgit2_d.types.git_repository* repo, const(void)* buffer, size_t len)

Write an in-memory buffer to the ODB as a blob

git_blob_create_from_disk
int git_blob_create_from_disk(libgit2_d.oid.git_oid* id, libgit2_d.types.git_repository* repo, const(char)* path)

Read a file from the filesystem and write its content to the Object Database as a loose blob

git_blob_create_from_stream
int git_blob_create_from_stream(libgit2_d.types.git_writestream** out_, libgit2_d.types.git_repository* repo, const(char)* hintpath)

Create a stream to write a new blob into the object db

git_blob_create_from_stream_commit
int git_blob_create_from_stream_commit(libgit2_d.oid.git_oid* out_, libgit2_d.types.git_writestream* stream)

Close the stream and write the blob to the object db

git_blob_create_from_workdir
int git_blob_create_from_workdir(libgit2_d.oid.git_oid* id, libgit2_d.types.git_repository* repo, const(char)* relative_path)

Read a file from the working folder of a repository and write it to the Object Database as a loose blob

git_blob_dup
int git_blob_dup(libgit2_d.types.git_blob** out_, libgit2_d.types.git_blob* source)

Create an in-memory copy of a blob. The copy must be explicitly free'd or it will leak.

git_blob_filter
int git_blob_filter(libgit2_d.buffer.git_buf* out_, libgit2_d.types.git_blob* blob, const(char)* as_path, .git_blob_filter_options* opts)

Get a buffer with the filtered content of a blob.

git_blob_free
void git_blob_free(libgit2_d.types.git_blob* blob)

Close an open blob

git_blob_id
const(libgit2_d.oid.git_oid)* git_blob_id(const(libgit2_d.types.git_blob)* blob)

Get the id of a blob.

git_blob_is_binary
int git_blob_is_binary(const(libgit2_d.types.git_blob)* blob)

Determine if the blob content is most certainly binary or not.

git_blob_lookup
int git_blob_lookup(libgit2_d.types.git_blob** blob, libgit2_d.types.git_repository* repo, const(libgit2_d.oid.git_oid)* id)

Lookup a blob object from a repository.

git_blob_lookup_prefix
int git_blob_lookup_prefix(libgit2_d.types.git_blob** blob, libgit2_d.types.git_repository* repo, const(libgit2_d.oid.git_oid)* id, size_t len)

Lookup a blob object from a repository, given a prefix of its identifier (short id).

git_blob_owner
libgit2_d.types.git_repository* git_blob_owner(const(libgit2_d.types.git_blob)* blob)

Get the repository that contains the blob.

git_blob_rawcontent
const(void)* git_blob_rawcontent(const(libgit2_d.types.git_blob)* blob)

Get a read-only buffer with the raw content of a blob.

git_blob_rawsize
libgit2_d.types.git_object_size_t git_blob_rawsize(const(libgit2_d.types.git_blob)* blob)

Get the size in bytes of the contents of a blob

Manifest constants

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

Structs

git_blob_filter_options
struct git_blob_filter_options

The options used when applying filter options to a file.

Meta