Get the git installation directory in user's home.
()
| 21 | |
| 22 | /// Get the git installation directory in user's home. |
| 23 | fn git_install_dir() -> PathBuf { |
| 24 | dirs::home_dir() |
| 25 | .unwrap_or_else(|| PathBuf::from("/usr/local")) |
| 26 | .join(".local") |
| 27 | .join("git") |
| 28 | } |
| 29 | |
| 30 | /// Check if a path is inside a git repository. |
| 31 | pub fn is_git_repo(path: &Path) -> bool { |
no outgoing calls
no test coverage detected