Function parse_if_maybe_hash

Source
pub fn parse_if_maybe_hash(
    input: &str,
    syntax: &str,
) -> (String, Option<String>)
Expand description

Parses user inputs of the form <head><syntax><commit-hash>

Returns the user’s input but also the commit hash if it exists