Skip to main content

parse_diff_file_path

Function parse_diff_file_path 

Source
pub fn parse_diff_file_path(token: &str) -> String
Expand description

Parse one unified-diff path token (+++ b/foo, rename to "\\056env").

Accepts a raw token with or without a +++ / --- / rename / copy prefix so hosts can feed single lines. (#2170)