- git_branch_create
int git_branch_create(libgit2_d.types.git_reference** out_, libgit2_d.types.git_repository* repo, const(char)* branch_name, const(libgit2_d.types.git_commit)* target, int force)
Create a new branch pointing at a target commit
- git_branch_create_from_annotated
int git_branch_create_from_annotated(libgit2_d.types.git_reference** ref_out, libgit2_d.types.git_repository* repository, const(char)* branch_name, const(libgit2_d.types.git_annotated_commit)* commit, int force)
Create a new branch pointing at a target commit
- git_branch_delete
int git_branch_delete(libgit2_d.types.git_reference* branch)
Delete an existing branch reference.
- git_branch_is_checked_out
int git_branch_is_checked_out(const(libgit2_d.types.git_reference)* branch)
Determine if any HEAD points to the current branch
- git_branch_is_head
int git_branch_is_head(const(libgit2_d.types.git_reference)* branch)
Determine if HEAD points to the given branch
- git_branch_iterator_free
void git_branch_iterator_free(.git_branch_iterator* iter)
- git_branch_iterator_new
int git_branch_iterator_new(.git_branch_iterator** out_, libgit2_d.types.git_repository* repo, libgit2_d.types.git_branch_t list_flags)
Create an iterator which loops over the requested branches.
- git_branch_lookup
int git_branch_lookup(libgit2_d.types.git_reference** out_, libgit2_d.types.git_repository* repo, const(char)* branch_name, libgit2_d.types.git_branch_t branch_type)
Lookup a branch by its name in a repository.
- git_branch_move
int git_branch_move(libgit2_d.types.git_reference** out_, libgit2_d.types.git_reference* branch, const(char)* new_branch_name, int force)
Move/rename an existing local branch reference.
- git_branch_name
int git_branch_name(const(char)** out_, const(libgit2_d.types.git_reference)* ref_)
- git_branch_next
int git_branch_next(libgit2_d.types.git_reference** out_, libgit2_d.types.git_branch_t* out_type, .git_branch_iterator* iter)
Retrieve the next branch from the iterator
- git_branch_remote_name
int git_branch_remote_name(libgit2_d.buffer.git_buf* out_, libgit2_d.types.git_repository* repo, const(char)* refname)
Find the remote name of a remote-tracking branch
- git_branch_set_upstream
int git_branch_set_upstream(libgit2_d.types.git_reference* branch, const(char)* branch_name)
Set a branch's upstream branch
- git_branch_upstream
int git_branch_upstream(libgit2_d.types.git_reference** out_, const(libgit2_d.types.git_reference)* branch)
Get the upstream of a branch
- git_branch_upstream_name
int git_branch_upstream_name(libgit2_d.buffer.git_buf* out_, libgit2_d.types.git_repository* repo, const(char)* refname)
Get the upstream name of a branch
- git_branch_upstream_remote
int git_branch_upstream_remote(libgit2_d.buffer.git_buf* buf, libgit2_d.types.git_repository* repo, const(char)* refname)
Retrieve the upstream remote of a local branch