Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/microsoft/Cream
/ get_git_info
Function
get_git_info
TinyViT/utils.py:343–347 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
341
342
343
def
get_git_info():
344
return
dict(
345
branch=run_cmd(
'git rev-parse --abbrev-ref HEAD'
,
'custom'
),
346
git_hash=run_cmd(
'git rev-parse --short HEAD'
,
'custom'
),
347
)
Callers
1
main.py
File · 0.90
Calls
1
run_cmd
Function · 0.85
Tested by
no test coverage detected