Ggit.Reflog¶
Fields¶
None
Methods¶
| append(oid, committer, message) | |
| get_entry_count() | |
| get_entry_from_index(idx) | |
| ref() | |
| rename(new_name) | |
| unref() | |
| write() | 
Details¶
- 
class Ggit.Reflog¶
- Represents a reflog. - 
append(oid, committer, message)¶
- Parameters: - oid (Ggit.OId) – aGgit.OId.
- committer (Ggit.Signature) – aGgit.Signature.
- message (str) – the message.
 - Raises: - Returns: - Trueif the reflog was successfully created, or- Falseif error is set.- Return type: - Creates a reflog entry. 
- oid (
 - 
get_entry_count()¶
- Returns: - the number of log entries. - Return type: - int- 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: - Ggit.ReflogEntryor- None- Gets the - Ggit.ReflogEntryat idx in self, or- Noneif not found.
 - 
ref()¶
- Returns: - the passed in - Ggit.Reflogor- None.- Return type: - Ggit.Reflogor- None- 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: - GLib.Error- Return type: - bool- 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. 
 - 
write()¶
- Raises: - GLib.Error- Returns: - Trueif the reflog was successfully written, or- Falseon error.- Return type: - bool- Write the reflog to disk. 
 
-