Skip to main content

search

Function search 

Source
pub fn search(request: &SearchRequest) -> Result<Vec<LineMatch>, SearchError>
Expand description

Runs request against the tree and returns the matching lines.

The walk stops once request.max_results matches have been collected, so a broad pattern over a large tree does not scan the whole repository.