normalize_repo_path_prefix

Function normalize_repo_path_prefix 

Source
pub fn normalize_repo_path_prefix(value: &str) -> String
Expand description

Normalize a repository-relative path prefix used by query filters.

This helper accepts . and empty prefixes because filter callers often use them to mean the repository root. Exact file reads should still use validated_repo_file_key so absolute paths and traversal are rejected.