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:
 Trueif the reflog was successfully created, orFalseif 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
Noneif not found.- Return type:
 
Gets the
Ggit.ReflogEntryat idx in self, orNoneif not found.
- ref()¶
 - Returns:
 the passed in
Ggit.ReflogorNone.- Return type:
 Ggit.ReflogorNone
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.