Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/GitGuardian/ggshield
/ _git_rev_parse
Function
_git_rev_parse
ggshield/utils/git_shell.py:105–106 ·
view source on GitHub ↗
(option: str, wd: Path)
Source
from the content-addressed store, hash-verified
103
104
105
def
_git_rev_parse(option: str, wd: Path) -> Optional[str]:
106
return
_git_rev_parse_absolute(option=option, wd_absolute=wd.resolve())
107
108
109
def
get_new_branch_ci_commits(
Callers
4
is_git_dir
Function · 0.85
is_git_working_tree
Function · 0.85
get_git_root
Function · 0.85
gitignore
Function · 0.85
Calls
1
_git_rev_parse_absolute
Function · 0.85
Tested by
no test coverage detected