normalize_git_change_path

Function normalize_git_change_path 

Source
pub fn normalize_git_change_path(path: &Path) -> Option<String>
Expand description

Normalize a git porcelain path into a safe rel_path string.

  • Handles rename/copy entries that contain old -> new by keeping the new path.
  • Strips surrounding quotes.
  • Rejects any path that isn’t a safe relative path (e.g. contains ..).