1 2 3 4 5 6 7 8 9 10 11
use crate::proc::execute; pub fn checkout(branch: &str) { let cmd = format!("git checkout {}", branch); execute(&cmd); } pub fn checkout_new_branch(branch: &str) { let cmd = format!("git checkout -b {}", branch); execute(&cmd); }