Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/GitGuardian/ggshield
/ is_git_dir
Function
is_git_dir
ggshield/utils/git_shell.py:154–155 ·
view source on GitHub ↗
(wd: Union[str, Path])
Source
from the content-addressed store, hash-verified
152
153
154
def
is_git_dir(wd: Union[str, Path]) -> bool:
155
return
_git_rev_parse(
"--git-dir"
, Path(wd)) is not None
156
157
158
def
is_git_working_tree(wd: Union[str, Path]) -> bool:
Callers
8
list_files
Function · 0.90
_find_dot_env
Function · 0.90
scan_repo_path
Function · 0.90
test_is_git_dir
Function · 0.90
check_git_dir
Function · 0.85
get_repository_url_from_path
Function · 0.85
is_gitignored
Function · 0.85
gitignore
Function · 0.85
Calls
1
_git_rev_parse
Function · 0.85
Tested by
1
test_is_git_dir
Function · 0.72