| Top | Description | Object Hierarchy |
GgitBranch; struct GgitBranchClass; enum GgitBranchType; void ggit_branch_delete (GgitBranch *branch,GError **error); GgitBranch * ggit_branch_move (GgitBranch *branch,const gchar *new_branch_name,GgitCreateFlags flags,GError **error); const gchar * ggit_branch_get_name (GgitBranch *branch,GError **error); GgitRef * ggit_branch_get_upstream (GgitBranch *branch,GError **error); gboolean ggit_branch_is_head (GgitBranch *branch,GError **error);
GObject +----GgitObjectFactoryBase +----GgitNative +----GgitRef +----GgitBranch
GEnum +----GgitBranchType
typedef enum {
GGIT_BRANCH_LOCAL = 1,
GGIT_BRANCH_REMOTE = 2
} GgitBranchType;
The type of a branch.
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().
|
a GgitBranch. |
|
a GError for error reporting, or NULL. |
GgitBranch * ggit_branch_move (GgitBranch *branch,const gchar *new_branch_name,GgitCreateFlags flags,GError **error);
Moves/renames an existing branch reference.
|
a GgitBranch. |
|
target name of the branch once the move is performed; this name is validated for consistency. |
|
a GgitCreateFlags. |
|
a GError for error reporting, or NULL. |
Returns : |
the new branch. [transfer full] |
const gchar * ggit_branch_get_name (GgitBranch *branch,GError **error);
Gets the name of the given local or remote branch.
|
a GgitBranch. |
|
a GError for error reporting, or NULL. |
Returns : |
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.
|
a GgitBranch. |
|
a GError for error reporting, or NULL. |
Returns : |
the reference supporting the remote tracking branch. [transfer full][allow-none] |
gboolean ggit_branch_is_head (GgitBranch *branch,GError **error);
Determines if the current local branch is pointed at by HEAD.
|
a GgitBranch. |
|
a GError for error reporting, or NULL. |
Returns : |
TRUE if the current local branch is pointed at by HEAD. |