(repo: &Repository)
| 188 | |
| 189 | #[allow(dead_code)] |
| 190 | pub fn get_current_branch_name(repo: &Repository) -> String { |
| 191 | let head = repo.head().unwrap(); |
| 192 | head.shorthand().unwrap().to_string() |
| 193 | } |
| 194 | |
| 195 | pub fn create_new_file(path_to_repo: &Path, file_name: &str, file_contents: &str) { |
| 196 | let mut file = OpenOptions::new() |
no outgoing calls