use std::path::Path;
use anyhow::Result;
use crate::subprocess_utils::{capture_output, check_call};
pub fn branch_local(_project: &Path) -> Result<bool> {
check_call("git", &["branch"])?;
Ok(true)
}
pub fn branch_remote(_project: &Path) -> Result<bool> {
check_call("git", &["branch", "-r"])?;
Ok(true)
}
pub fn branch_github(_project: &Path) -> Result<bool> {
let output = capture_output(
"gh",
&["repo", "view", "--json", "defaultBranchRef", "-q", ".defaultBranchRef.name"],
)?;
println!("{output}");
Ok(true)
}