Ggit.Reflog¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Ggit.Reflog¶
Represents a reflog.
- append(oid, committer, message)¶
- Parameters:
committer (
Ggit.Signature
) – aGgit.Signature
.message (
str
) – the message.
- Raises:
- Returns:
True
if the reflog was successfully created, orFalse
if error is set.- Return type:
Creates a reflog entry.
- get_entry_count()¶
- Returns:
the number of log entries.
- Return type:
Gets the number of log entries in self.
- get_entry_from_index(idx)¶
- Parameters:
idx (
int
) – the position to lookup.- Returns:
the reflog entry at the index, or
None
if not found.- Return type:
Gets the
Ggit.ReflogEntry
at idx in self, orNone
if not found.
- ref()¶
- Returns:
the passed in
Ggit.Reflog
orNone
.- Return type:
Ggit.Reflog
orNone
Atomically increments the reference count of self by one. This function is MT-safe and may be called from any thread.
- rename(new_name)¶
- Parameters:
new_name (
str
) – the new name of the reference.- Raises:
- Return type:
Renames the reflog for to new_name, on error error is set.
- unref()¶
Atomically decrements the reference count of self by one. If the reference count drops to 0, self is freed.