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.
Repository::tag_foreach
1 parent 1d9f4d4 commit 4d19f24Copy full SHA for 4d19f24
src/repo.rs
@@ -2043,8 +2043,10 @@ impl Repository {
2043
}
2044
2045
2046
- /// iterate over all tags calling `cb` on each.
2047
- /// the callback is provided the tag id and name
+ /// Iterate over all tags, calling the callback `cb` on each.
+ /// The arguments of `cb` are the tag id and name, in this order.
2048
+ ///
2049
+ /// Returning `false` from `cb` causes the iteration to break early.
2050
pub fn tag_foreach<T>(&self, cb: T) -> Result<(), Error>
2051
where
2052
T: FnMut(Oid, &[u8]) -> bool,
0 commit comments