pub async fn split_ref_path(
dir: &Path,
segs: &[String],
) -> (String, Vec<String>)Expand description
Longest ref-name match wins (JSS splitRefPath): ["feature","x","src"]
becomes ("feature/x", ["src"]) when feature/x is a branch or tag.