Skip to main content

split_treeish_colon

Function split_treeish_colon 

Source
pub fn split_treeish_colon(spec: &str) -> Option<(&str, &str)>
Expand description

Split treeish:path at the first colon that separates a revision from a path, ignoring colons inside ^{...} peel operators.

Returns None for index-only forms like :path and :N:path (leading :).