Type Definition git2::IndexMatchedPath [] [src]

type IndexMatchedPath<'a> = FnMut(&Path, &[u8]) -> i32 + 'a;

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.