Branch
Object Hierarchy:
Description:
[
CCode ( type_id =
"ggit_branch_get_type ()" ) ]
public class Branch :
Ref
Represents a branch object.
Content:
Creation methods:
Methods:
- public void @delete () throws Error
Deletes an existing branch reference.
- public unowned string? get_name () throws Error
Gets the name of the given local or remote branch.
- public Ref? get_upstream () throws Error
Gets the reference supporting the remote tracking branch, given a local
branch reference.
- public bool is_head () throws Error
Determines if the current local branch is pointed at by HEAD.
- public Branch? move (string new_branch_name, CreateFlags flags) throws Error
Moves/renames an existing branch reference.
- public void set_upstream (string upstream_branch_name) throws Error
Sets the upstream branch, for a given local branch reference
Inherited Members:
All known members inherited from class Ggit.Ref
All known members inherited from class Ggit.Native
All known members inherited from class GLib.Object