# Functions
AsPtr returns the value as a pointer.
Check checks the error and panics if not nil.
Must checks the error and panics if not nil.
NewTempDir creates a new TempDir.
NewTestRepo creates a new TestRepo with the given files committed into a single commit in the repo.
WithCancel returns a deferrable function that can be cancelled.