MCPcopy Create free account
hub / github.com/datmo/datmo / create_ref

Method create_ref

datmo/core/controller/code/driver/git.py:154–201  ·  view source on GitHub ↗

Add remaining files, make a commit and add it to a datmo code ref Parameters ---------- commit_id : str, optional if commit_id is given, it will not add files and not create a commit Returns ------- commit_id : str commit id f

(self, commit_id=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

createMethod · 0.45
test_current_hashMethod · 0.45
test_create_refMethod · 0.45
test_latest_refMethod · 0.45
test_exists_refMethod · 0.45
test_delete_refMethod · 0.45
test_list_refsMethod · 0.45
test_checkout_refMethod · 0.45
test_current_hashMethod · 0.45
test_create_refMethod · 0.45

Calls 8

ensure_code_refs_dirMethod · 0.95
latest_commitMethod · 0.95
addMethod · 0.95
commitMethod · 0.95
exists_commitMethod · 0.95
CommitFailedClass · 0.90
CommitDoesNotExistClass · 0.90
to_bytesFunction · 0.70

Tested by 15

test_current_hashMethod · 0.36
test_create_refMethod · 0.36
test_latest_refMethod · 0.36
test_exists_refMethod · 0.36
test_delete_refMethod · 0.36
test_list_refsMethod · 0.36
test_checkout_refMethod · 0.36
test_current_hashMethod · 0.36
test_create_refMethod · 0.36
test_current_refMethod · 0.36