code: func getAbsolutePath(p string) (string, error) {
  	root, err := git.RootDir()
  	if err != nil {
  		return "", err
  	}
  
  	return filepath.Join(root, p), nil
  }
docs: // getAbsolutePath takes a repository-relative path and makes it absolute.
  //
  // For instance, given a repository in /usr/local/src/my-repo and a file called
  // dir/foo/bar.txt, getAbsolutePath will return:
  //
  //   /usr/local/src/my-repo/dir/foo/bar.txt