(branch: String, upstream: String, message: Option<String>)
| 14 | } |
| 15 | |
| 16 | fn merge_conflict(branch: String, upstream: String, message: Option<String>) -> Self { |
| 17 | let mut error_msg = format!("Merge conflict between {} and {}", upstream, branch); |
| 18 | if let Some(details) = message { |
| 19 | error_msg.push('\n'); |
| 20 | error_msg.push_str(&details); |
| 21 | } |
| 22 | Error::from_str(&error_msg) |
| 23 | } |
| 24 | |
| 25 | fn git_command_failed(command: String, status: i32, stdout: String, stderr: String) -> Self { |
| 26 | let error_msg = format!( |