Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/argotorg/solidity
/ git_commit_hash
Function
git_commit_hash
scripts/common/git_helpers.py:20–21 ·
view source on GitHub ↗
(ref: str = 'HEAD')
Source
from the content-addressed store, hash-verified
18
19
20
def
git_commit_hash(ref: str =
'HEAD'
):
21
return
run_git_command([
'git'
,
'rev-parse'
,
'--verify'
, ref])
22
23
24
def
git_diff(file_a: Path, file_b: Path) -> int:
Callers
2
download_project
Function · 0.90
download_benchmarks
Function · 0.90
Calls
1
run_git_command
Function · 0.85
Tested by
1
download_project
Function · 0.72