# Functions
Exists checks whether the commit key exists in the database.
MustReadAllForTesting reads all commits for testing, e.g.
MustSetForTesting replaces the set of stored commits to match the given set.
NewFromGitCommit creates a new Commit from a GitCommit.
NewGitCommit creates a new GitCommit.
NewKey creates a new Commit key.
ReadByKey retrieves a commit from the database given the commit key.
ReadByPosition retrieves a commit from the database given the commit position.
ShouldMatchCommits returns a comparison.Func which checks if the expected commits matches the actual commits.
ShouldMatchCommitsIn returns a comparison.Func which checks if the actual actual commit matches any of the expected commits.
ShouldMatchGitCommit returns a comparison.Func which checks if the expected GitCommit matches the actual GitCommit.
ShouldMatchKey returns a comparison.Func which checks if the expected commit key matches the actual commit key.
# Variables
CommitSaveCols is the set of columns written to in a commit save.
ErrInvalidPositionFooter is returned when there is matching position footer key, but its value doesn't match expected format.