pub fn record(dir: &Path, hook: &Digested, by: &str, via: &str)
Records that by trusted hook as it is now, through via.
by
hook
via