put

fun put(sha: String, snapshotText: String)

Stores snapshotText for sha atomically: it is written to a temp file and renamed into place, so a crash never leaves a partially-written entry that a later run would mistake for a valid baseline.