libgit2_d.refs

Undocumented in source.

Members

Aliases

git_reference_foreach_cb
alias git_reference_foreach_cb = int function(libgit2_d.types.git_reference* reference, void* payload)

Callback used to iterate over references

git_reference_foreach_name_cb
alias git_reference_foreach_name_cb = int function(const(char)* name, void* payload)

Callback used to iterate over reference names

Enums

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

Normalization options for reference lookup

Functions

git_reference_cmp
int git_reference_cmp(const(libgit2_d.types.git_reference)* ref1, const(libgit2_d.types.git_reference)* ref2)

Compare two references.

git_reference_create
int git_reference_create(libgit2_d.types.git_reference** out_, libgit2_d.types.git_repository* repo, const(char)* name, const(libgit2_d.oid.git_oid)* id, int force, const(char)* log_message)

Create a new direct reference.

git_reference_create_matching
int git_reference_create_matching(libgit2_d.types.git_reference** out_, libgit2_d.types.git_repository* repo, const(char)* name, const(libgit2_d.oid.git_oid)* id, int force, const(libgit2_d.oid.git_oid)* current_id, const(char)* log_message)

Conditionally create new direct reference

git_reference_delete
int git_reference_delete(libgit2_d.types.git_reference* ref_)

Delete an existing reference.

git_reference_dup
int git_reference_dup(libgit2_d.types.git_reference** dest, libgit2_d.types.git_reference* source)

Create a copy of an existing reference.

git_reference_dwim
int git_reference_dwim(libgit2_d.types.git_reference** out_, libgit2_d.types.git_repository* repo, const(char)* shorthand)

Lookup a reference by DWIMing its short name

git_reference_ensure_log
int git_reference_ensure_log(libgit2_d.types.git_repository* repo, const(char)* refname)

Ensure there is a reflog for a particular reference.

git_reference_foreach
int git_reference_foreach(libgit2_d.types.git_repository* repo, .git_reference_foreach_cb callback, void* payload)

Perform a callback on each reference in the repository.

git_reference_foreach_glob
int git_reference_foreach_glob(libgit2_d.types.git_repository* repo, const(char)* glob, git_reference_foreach_name_cb callback, void* payload)

Perform a callback on each reference in the repository whose name matches the given pattern.

git_reference_foreach_name
int git_reference_foreach_name(libgit2_d.types.git_repository* repo, git_reference_foreach_name_cb callback, void* payload)

Perform a callback on the fully-qualified name of each reference.

git_reference_free
void git_reference_free(libgit2_d.types.git_reference* ref_)

Free the given reference.

git_reference_has_log
int git_reference_has_log(libgit2_d.types.git_repository* repo, const(char)* refname)

Check if a reflog exists for the specified reference.

git_reference_is_branch
int git_reference_is_branch(const(libgit2_d.types.git_reference)* ref_)

Check if a reference is a local branch.

git_reference_is_note
int git_reference_is_note(const(libgit2_d.types.git_reference)* ref_)

Check if a reference is a note

git_reference_is_remote
int git_reference_is_remote(const(libgit2_d.types.git_reference)* ref_)

Check if a reference is a remote tracking branch

git_reference_is_tag
int git_reference_is_tag(const(libgit2_d.types.git_reference)* ref_)

Check if a reference is a tag

git_reference_is_valid_name
int git_reference_is_valid_name(const(char)* refname)

Ensure the reference name is well-formed.

git_reference_iterator_free
void git_reference_iterator_free(libgit2_d.types.git_reference_iterator* iter)

Free the iterator and its associated resources

git_reference_iterator_glob_new
int git_reference_iterator_glob_new(libgit2_d.types.git_reference_iterator** out_, libgit2_d.types.git_repository* repo, const(char)* glob)

Create an iterator for the repo's references that match the specified glob

git_reference_iterator_new
int git_reference_iterator_new(libgit2_d.types.git_reference_iterator** out_, libgit2_d.types.git_repository* repo)

Create an iterator for the repo's references

git_reference_list
int git_reference_list(libgit2_d.strarray.git_strarray* array, libgit2_d.types.git_repository* repo)

Fill a list with all the references that can be found in a repository.

git_reference_lookup
int git_reference_lookup(libgit2_d.types.git_reference** out_, libgit2_d.types.git_repository* repo, const(char)* name)

Lookup a reference by name in a repository.

git_reference_name
const(char)* git_reference_name(const(libgit2_d.types.git_reference)* ref_)

Get the full name of a reference.

git_reference_name_to_id
int git_reference_name_to_id(libgit2_d.oid.git_oid* out_, libgit2_d.types.git_repository* repo, const(char)* name)

Lookup a reference by name and resolve immediately to OID.

git_reference_next
int git_reference_next(libgit2_d.types.git_reference** out_, libgit2_d.types.git_reference_iterator* iter)

Get the next reference

git_reference_next_name
int git_reference_next_name(const(char)** out_, libgit2_d.types.git_reference_iterator* iter)

Get the next reference's name

git_reference_normalize_name
int git_reference_normalize_name(char* buffer_out, size_t buffer_size, const(char)* name, uint flags)

Normalize reference name and check validity.

git_reference_owner
libgit2_d.types.git_repository* git_reference_owner(const(libgit2_d.types.git_reference)* ref_)

Get the repository where a reference resides.

git_reference_peel
int git_reference_peel(libgit2_d.types.git_object** out_, const(libgit2_d.types.git_reference)* ref_, libgit2_d.types.git_object_t type)

Recursively peel reference until object of the specified type is found.

git_reference_remove
int git_reference_remove(libgit2_d.types.git_repository* repo, const(char)* name)

Delete an existing reference by name

git_reference_rename
int git_reference_rename(libgit2_d.types.git_reference** new_ref, libgit2_d.types.git_reference* ref_, const(char)* new_name, int force, const(char)* log_message)

Rename an existing reference.

git_reference_resolve
int git_reference_resolve(libgit2_d.types.git_reference** out_, const(libgit2_d.types.git_reference)* ref_)

Resolve a symbolic reference to a direct reference.

git_reference_set_target
int git_reference_set_target(libgit2_d.types.git_reference** out_, libgit2_d.types.git_reference* ref_, const(libgit2_d.oid.git_oid)* id, const(char)* log_message)

Conditionally create a new reference with the same name as the given reference but a different OID target. The reference must be a direct reference, otherwise this will fail.

git_reference_shorthand
const(char)* git_reference_shorthand(const(libgit2_d.types.git_reference)* ref_)

Get the reference's short name

git_reference_symbolic_create
int git_reference_symbolic_create(libgit2_d.types.git_reference** out_, libgit2_d.types.git_repository* repo, const(char)* name, const(char)* target, int force, const(char)* log_message)

Create a new symbolic reference.

git_reference_symbolic_create_matching
int git_reference_symbolic_create_matching(libgit2_d.types.git_reference** out_, libgit2_d.types.git_repository* repo, const(char)* name, const(char)* target, int force, const(char)* current_value, const(char)* log_message)

Conditionally create a new symbolic reference.

git_reference_symbolic_set_target
int git_reference_symbolic_set_target(libgit2_d.types.git_reference** out_, libgit2_d.types.git_reference* ref_, const(char)* target, const(char)* log_message)

Create a new reference with the same name as the given reference but a different symbolic target. The reference must be a symbolic reference, otherwise this will fail.

git_reference_symbolic_target
const(char)* git_reference_symbolic_target(const(libgit2_d.types.git_reference)* ref_)

Get full name to the reference pointed to by a symbolic reference.

git_reference_target
const(libgit2_d.oid.git_oid)* git_reference_target(const(libgit2_d.types.git_reference)* ref_)

Get the OID pointed to by a direct reference.

git_reference_target_peel
const(libgit2_d.oid.git_oid)* git_reference_target_peel(const(libgit2_d.types.git_reference)* ref_)

Return the peeled OID target of this reference.

git_reference_type
libgit2_d.types.git_reference_t git_reference_type(const(libgit2_d.types.git_reference)* ref_)

Get the type of a reference.

Meta