module

AmebaConfig::Git

Locates the top-level directory of the git repository that contains start. Returns nil when the current directory is not inside a working tree.

Instance methods

repo_root(start : String = Dir.current) : String | Nil
Source
repo_root!
Source