We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 701a7e6 commit 66cce8fCopy full SHA for 66cce8f
src/index.rs
@@ -23,6 +23,11 @@ pub struct IndexEntries<'a> {
23
index: &'a Index,
24
}
25
26
+/// A callback function to filter index matches.
27
+///
28
+/// Used by `Index::{add_all,remove_all,update_all}`. The first argument is the
29
+/// path, and the second is the patchspec that matched it. Return 0 to confirm
30
+/// the operation on the item, > 0 to skip the item, and < 0 to abort the scan.
31
pub type IndexMatchedPath<'a> = |&[u8], &[u8]|: 'a -> int;
32
33
/// A structure to represent an entry or a file inside of an index.
0 commit comments