func EnsureSameRepo ¶
EnsureSameRepo ensures that all files belong to the same git repository and returns its absolute path.
Exec returns a function that executes a git command and returns its standard output. The context must be a path to an existing file or directory.
It is suitable only for commands that exit quickly and have small output, e.g. rev-parse.
RefExists returns true if the git ref exists.