Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ is_repo
Function
is_repo
crates/opencode-util/src/util.rs:204–206 ·
view source on GitHub ↗
(path: &Path)
Source
from the content-addressed store, hash-verified
202
}
203
204
pub fn is_repo(path: &Path) -> bool {
205
path.join(
".git"
).exists()
206
}
207
208
pub fn get_root(path: &Path) -> Option<std::path::PathBuf> {
209
let result = run(&[
"rev-parse"
,
"--show-toplevel"
], path);
Callers
nothing calls this directly
Calls
1
exists
Method · 0.80
Tested by
no test coverage detected