pub fn strip_path_suffix(path: &str, suffix: &str) -> Option<String>
Git’s stripped_path_suffix_offset / strip_path_suffix.
stripped_path_suffix_offset
strip_path_suffix