MCPcopy Create free account
hub / github.com/huggingface/transformers / save_git_info

Function save_git_info

examples/seq2seq/utils.py:198–201  ·  view source on GitHub ↗

Save git information to output_dir/git_log.json

(folder_path: str)

Source from the content-addressed store, hash-verified

196
197
198def save_git_info(folder_path: str) -> None:
199 """Save git information to output_dir/git_log.json"""
200 repo_infos = get_git_info()
201 save_json(repo_infos, os.path.join(folder_path, "git_log.json"))
202
203
204def save_json(content, path):

Callers 1

__init__Method · 0.90

Calls 2

get_git_infoFunction · 0.85
save_jsonFunction · 0.70

Tested by

no test coverage detected