git_refdb_backend

An instance for a custom backend

package extern (C) nothrow @nogc
struct git_refdb_backend {}

Members

Variables

compress
int function(.git_refdb_backend* backend) compress;

Suggests that the given refdb compress or optimize its references.

del
int function(.git_refdb_backend* backend, const(char)* ref_name, const(libgit2_d.oid.git_oid)* old_id, const(char)* old_target) del;

Deletes the given reference from the refdb.

ensure_log
int function(.git_refdb_backend* backend, const(char)* refname) ensure_log;

Make sure a particular reference will have a reflog which will be appended to on writes.

exists
int function(int* exists, .git_refdb_backend* backend, const(char)* ref_name) exists;

Queries the refdb backend for the existence of a reference.

free
void function(.git_refdb_backend* backend) free;

Frees any resources held by the refdb (including the git_refdb_backend itself).

has_log
int function(.git_refdb_backend* backend, const(char)* refname) has_log;

Query whether a particular reference has a log (may be empty)

iterator
int function(.git_reference_iterator** iter, .git_refdb_backend* backend, const(char)* glob) iterator;

Allocate an iterator object for the backend.

lock
int function(void** payload_out, .git_refdb_backend* backend, const(char)* refname) lock;

Lock a reference.

lookup
int function(libgit2_d.types.git_reference** out_, .git_refdb_backend* backend, const(char)* ref_name) lookup;

Queries the refdb backend for a given reference.

reflog_delete
int function(.git_refdb_backend* backend, const(char)* name) reflog_delete;

Remove a reflog.

reflog_read
int function(libgit2_d.types.git_reflog** out_, .git_refdb_backend* backend, const(char)* name) reflog_read;

Read the reflog for the given reference name.

reflog_rename
int function(.git_refdb_backend* _backend, const(char)* old_name, const(char)* new_name) reflog_rename;

Rename a reflog.

reflog_write
int function(.git_refdb_backend* backend, libgit2_d.types.git_reflog* reflog) reflog_write;

Write a reflog to disk.

rename
int function(libgit2_d.types.git_reference** out_, .git_refdb_backend* backend, const(char)* old_name, const(char)* new_name, int force, const(libgit2_d.types.git_signature)* who, const(char)* message) rename;

Rename a reference in the refdb.

unlock
int function(.git_refdb_backend* backend, void* payload, int success, int update_reflog, const(libgit2_d.types.git_reference)* ref_, const(libgit2_d.types.git_signature)* sig, const(char)* message) unlock;

Unlock a reference.

version_
uint version_;

The backend API version

write
int function(.git_refdb_backend* backend, const(libgit2_d.types.git_reference)* ref_, int force, const(libgit2_d.types.git_signature)* who, const(char)* message, const(libgit2_d.oid.git_oid)* old, const(char)* old_target) write;

Writes the given reference to the refdb.

Meta