Skip to main content

split_path_and_revision

Function split_path_and_revision 

Source
pub fn split_path_and_revision<'a>(
    path: Option<&'a str>,
    state: Option<&'a str>,
) -> (Option<&'a str>, Option<&'a str>, Option<&'a str>)
Expand description

Split --path / --state into a file target, a state target, and a historical revision to read.

--path always names a file. --state with --path is the historical revision of that file. --state alone is a state-level target.