gix_pathspec

Function parse

source
pub fn parse(input: &[u8], default: Defaults) -> Result<Pattern, Error>
Expand description

Parse a git-style pathspec into a Pattern, setting the given default values in case these aren’t specified in input.

Note that empty paths are allowed here, and generally some processing has to be performed.