Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ GetHeadRevision
Function
GetHeadRevision
tools/inspector_protocol/roll.py:94–96 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
92
93
94
def
GetHeadRevision(path):
95
os.chdir(path)
96
return
RunCmd([
'git'
,
'rev-parse'
,
'HEAD'
])
97
98
99
def
main(argv):
Callers
1
main
Function · 0.70
Calls
2
chdir
Method · 0.80
RunCmd
Function · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…