Skip to main content

validate_author

Function validate_author 

Source
pub fn validate_author(value: &str) -> Result<(), GitArgError>
Expand description

Validates the author argument. Bound into a single --author=<value> argv token (see build_commit_argv), so a leading dash inside value cannot itself become a new flag – rejected anyway, defensively, since a concatenated --author=--upload-pack=x value has no legitimate reason to start with -.