Documentation ¶ Index ¶ func FindRoot(path string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func FindRoot ¶ func FindRoot(path string) (string, error) FindRoot returns the git repository root for the given path. If path is already the git root, returns it unchanged. Returns an error if path is not inside a git repository. Types ¶ This section is empty. Source Files ¶ View all Source files root.go Click to show internal directories. Click to hide internal directories.