Top | ![]() |
![]() |
![]() |
![]() |
void | ggit_branch_delete () |
GgitBranch * | ggit_branch_move () |
const gchar * | ggit_branch_get_name () |
GgitRef * | ggit_branch_get_upstream () |
gboolean | ggit_branch_is_head () |
GEnum ╰── GgitBranchType GObject ╰── GgitObjectFactoryBase ╰── GgitNative ╰── GgitRef ╰── GgitBranch
void ggit_branch_delete (GgitBranch *branch
,GError **error
);
Deletes an existing branch reference.
If the branch is successfully deleted, this object is
not useful anymore and if should be freed with g_object_unref()
.
GgitBranch * ggit_branch_move (GgitBranch *branch
,const gchar *new_branch_name
,GgitCreateFlags flags
,GgitSignature *signature
,const gchar *log_message
,GError **error
);
Moves/renames an existing branch reference.
branch |
a GgitBranch. |
|
new_branch_name |
target name of the branch once the move is performed; this name is validated for consistency. |
|
flags |
||
signature |
a GgitSignature used to populate the reflog entry. |
|
log_message |
The one line long message to be appended to the reflog. |
|
error |
a GError for error reporting, or |
const gchar * ggit_branch_get_name (GgitBranch *branch
,GError **error
);
Gets the name of the given local or remote branch.
GgitRef * ggit_branch_get_upstream (GgitBranch *branch
,GError **error
);
Gets the reference supporting the remote tracking branch, given a local branch reference.
gboolean ggit_branch_is_head (GgitBranch *branch
,GError **error
);
Determines if the current local branch is pointed at by HEAD.