Struct git2::Reflog [−][src]
pub struct Reflog { /* fields omitted */ }
Expand description
A reference log of a git repository.
Implementations
Add a new entry to the in-memory reflog.
Remove an entry from the reflog by its index
To ensure there’s no gap in the log history, set rewrite_previous_entry
param value to true
. When deleting entry n, member old_oid of entry
n-1 (if any) will be updated with the value of member new_oid of entry
n+1.
Lookup an entry by its index
Requesting the reflog entry with an index of 0 (zero) will return the most recently created entry.
pub fn iter(&self) -> ReflogIter<'_>ⓘNotable traits for ReflogIter<'reflog>impl<'reflog> Iterator for ReflogIter<'reflog> type Item = ReflogEntry<'reflog>;
pub fn iter(&self) -> ReflogIter<'_>ⓘNotable traits for ReflogIter<'reflog>impl<'reflog> Iterator for ReflogIter<'reflog> type Item = ReflogEntry<'reflog>;
Notable traits for ReflogIter<'reflog>
impl<'reflog> Iterator for ReflogIter<'reflog> type Item = ReflogEntry<'reflog>;
Get an iterator to all entries inside of this reflog