Ggit.Branch¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Ggit.Branch(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a branch object.
- delete()¶
- Raises:
Deletes an existing branch reference.
If the branch is successfully deleted, this object is not useful anymore and if should be freed with
GObject.Object.unref
().
- get_name()¶
- Raises:
- Returns:
the name of the given local or remote branch or
None
.- Return type:
Gets the name of the given local or remote branch.
- get_upstream()¶
- Raises:
- Returns:
the reference supporting the remote tracking branch or
None
.- Return type:
Gets the reference supporting the remote tracking branch, given a local branch reference.
- is_head()¶
- Raises:
- Returns:
True
if the current local branch is pointed at by HEAD.- Return type:
Determines if the current local branch is pointed at by HEAD.
- move(new_branch_name, flags)¶
- Parameters:
new_branch_name (
str
) – target name of the branch once the move is performed; this name is validated for consistency.flags (
Ggit.CreateFlags
) – aGgit.CreateFlags
.
- Raises:
- Returns:
the new branch or
None
.- Return type:
Ggit.Branch
orNone
Moves/renames an existing branch reference.