Skip to main content

validate_ref

Function validate_ref 

Source
pub fn validate_ref(what: &str, value: &str) -> Result<(), String>
Expand description

Check a ref or branch name before it goes on a git command line. It comes from a tasks file; a leading - would read as an option.