()
| 382 | pub const CHECKPOINT_MESSAGE_MAX_LENGTH: usize = 60; |
| 383 | |
| 384 | fn is_git_installed() -> bool { |
| 385 | Command::new("git") |
| 386 | .arg("--version") |
| 387 | .output() |
| 388 | .map(|o| o.status.success()) |
| 389 | .unwrap_or(false) |
| 390 | } |
| 391 | |
| 392 | fn is_in_git_repo() -> bool { |
| 393 | Command::new("git") |