pub struct Reflog { /* fields omitted */ }
A reference log of a git repository.
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.
Get the number of log entries in a reflog
Return true
is there is no log entry in a reflog
Get an iterator to all entries inside of this reflog
Write an existing in-memory reflog object back to disk using an atomic
file lock.
Executes the destructor for this type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static