gix_revision::spec

Function parse

Source
pub fn parse(input: &BStr, delegate: &mut impl Delegate) -> Result<(), Error>
Expand description

Parse a git revspec and call delegate for each token successfully parsed.

Note that the delegate is expected to maintain enough state to lookup revisions properly. Returns Ok(()) if all of input was consumed, or the error if either the revspec syntax was incorrect or the delegate failed to perform the request.