pub fn branch_parents(branches: &[String]) -> Result<Vec<(String, String)>>
(branch, parent) pairs for the branches that have a stack parent; branches without one are skipped.