Function sanitize_git_ref_onelevel

Source
pub fn sanitize_git_ref_onelevel(text: &str) -> String
Expand description

Rules obtained from git-check-ref-format.

This function sanitizes git refs with the assumption that --allow-onelevel is true.