MCPcopy
hub / github.com/diffgram/diffgram / add

Method add

shared/database/source_control/working_dir.py:441–448  ·  view source on GitHub ↗
(session, working_dir_id, file)

Source from the content-addressed store, hash-verified

439 session.delete(file_link)
440
441 def add(session, working_dir_id, file):
442 # need full file object
443 # for type and committed
444 file_link = WorkingDirFileLink(working_dir_id = working_dir_id,
445 file_id = file.id,
446 type = file.type,
447 committed = file.committed)
448 session.add(file_link)
449
450 def commit(session, working_dir_id, file):
451 file_link = WorkingDirFileLink.file_link(session, working_dir_id, file.id)

Callers 15

newMethod · 0.45
newMethod · 0.45
newMethod · 0.45
updateMethod · 0.45
newMethod · 0.45
newMethod · 0.45
attach_elementMethod · 0.45
updateMethod · 0.45
newMethod · 0.45
newMethod · 0.45
add_permissionMethod · 0.45
remove_permissionMethod · 0.45

Calls 1

WorkingDirFileLinkClass · 0.85

Tested by

no test coverage detected