Skip to main content

parse_range

Function parse_range 

Source
pub fn parse_range(spec: &[&str]) -> Result<RangeSpec, EngineError>
Expand description

Parse a..b, a...b, or two separate revs.

One parser, so the endpoints and the review’s identity can never disagree about which side is the head. There used to be a second copy of this in the CLI, whose only protection against divergence was that its extra arms were unreachable.