pub fn protect_branches( root: &mut Node, repo: &dyn Repo, protected_branches: &Branches) -> Result<(), Error>