Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def stage_files_from_status_list(status_list):
filenames = [str(s.path) for s in status_list]
exec_git('add', *filenames)
def _set_ref(name, hashid):
exec_git('update-ref', name, hashid)
def _read_tree(ref_or_hashid):
exec_git('read-tree', ref_or_hashid)
def _write_tree():
return exec_git('write-tree').strip()