fn object_response
also on silt # pub fn object_response(
base_url: String,
tenant: String,
kind: String,
sha: String,
body: String,
recursive: Bool,
fetch: Fetch,
) -> Result(json.Json, Nil)
Build the REST response for a stored object of kind
("blobs", "trees", or "commits").
Each response carries the object's sha, a canonical
url, and the decoded fields for its kind.
When recursive is True, a tree response walks
its children through fetch and flattens
them with prefixed paths. An unknown kind is an
Error(Nil).
fn commit_details_response
# pub fn commit_details_response(
base_url: String,
tenant: String,
sha: String,
body: String,
) -> Result(json.Json, Nil)
Build the detailed commit response for a single commit body — the
nested commit object (author, committer, message, tree) the
history endpoint returns per entry.
fn commit_history_response
# pub fn commit_history_response(
base_url: String,
tenant: String,
sha: String,
count: Int,
fetch: Fetch,
) -> List(json.Json)
Walk first parents from sha, up to count
commits, resolving each through fetch —
the commit-history endpoint. Stops early at the root or when a body can't
be resolved.