Weld.Git (weld v0.20.2)

Copy Markdown View Source

Bounded Git observations and object/ref operations. Tree proof reads actual Git blobs and executable modes; tracking never checks out or changes main.

Summary

Functions

branch_exists?(root, branch)

changed_files(root, base, head)

changes(root, base, head)

check_ref!(root, ref)

commit_message(root, ref)

dirty?(root)

ensure_clean_repo!(root)

fast_forward_from?(root, remote_tip, local_tip)

Prove a remote tip is an ancestor of the local tip using available commit objects.

object_format(root)

project_files(root)

project_id(root, ref)

project_observation(root, ref)

Exact portable project inventory read from Git, including explicit empty trees.

push_release!(root, remote, branch, tag \\ nil)

ref_oid(root, ref)

remote_refs(root, remote, refs)

remote_url(root)

revision(root)

root(path)

run(root, args)

run!(root, args)

tag_exists?(root, tag)

tag_info(root, tag)

tracked_files(root)

transaction!(root, updates)

Update refs together with expected old object IDs; never replace a conflicting tag.

with_tree!(root, ref, fun)

write_commit!(root, tree, parent, message, scratch)

write_project_tree!(root, project, scratch)

Write a tree directly from qualified files, preserving modes and empty directories.

write_tag!(root, tag, commit, message, scratch)