MCPcopy
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
343def 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.pyFile · 0.90

Calls 1

run_cmdFunction · 0.85

Tested by

no test coverage detected