We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 850d326 commit 7651f62Copy full SHA for 7651f62
lib/src/iter.rs
@@ -220,6 +220,15 @@ impl<'r> RefsReferringTo<'r> {
220
Self { refs: HashMap::new(), inner: messages, current_refs: Vec::new() }
221
}
222
223
+ /// Push a starting point for the iteration
224
+ ///
225
+ /// The message will be pushed onto the underlying `Revwalk` used for
226
+ /// iterating over messages.
227
228
+ pub fn push(&mut self, message: git2::Oid) -> Result<()> {
229
+ self.inner.push(message).chain_err(|| EK::CannotConstructRevwalk)
230
+ }
231
+
232
/// Start watching a reference
233
///
234
/// A watched reference may be returned by the iterator.
0 commit comments