Type Definition git2::IndexMatchedPath [−][src]
pub type IndexMatchedPath<'a> = dyn FnMut(&Path, &[u8]) -> i32 + 'a;
Expand description
A callback function to filter index matches.
Used by Index::{add_all,remove_all,update_all}
. The first argument is the
path, and the second is the patchspec that matched it. Return 0 to confirm
the operation on the item, > 0 to skip the item, and < 0 to abort the scan.