MCPcopy Index your code
hub / github.com/AI45Lab/Code / git_install_dir

Function git_install_dir

core/src/git.rs:23–28  ·  view source on GitHub ↗

Get the git installation directory in user's home.

()

Source from the content-addressed store, hash-verified

21
22/// Get the git installation directory in user's home.
23fn 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.
31pub fn is_git_repo(path: &Path) -> bool {

Callers 3

install_git_macosFunction · 0.85
install_git_linuxFunction · 0.85
install_git_windowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected