wikidb.tracker.read_commit

wikidb.tracker

read_commit(git_dir, ref) -> commit, err

Read a commit in the shape link_commit takes

ref is a sha, a ref path, a branch or tag name, or nil for HEAD. A trailing ~n or ^ walks back along first parents. A ref name wins over an abbreviated sha, so a branch called dead is not read as one.

The commit is { sha, subject, message, author }. author is the person alone, Name <email>, without the timestamp.