git-codeowners
git-codeowners copied to clipboard
Discover current git repo
Currently the CODEOWNERS-finding algorithm of this app is:
- Was a path specified via
-c path/to/CODEOWNERS
? If so, try to use it. - Otherwise, try
codeowners.locate
from the cwd.
A more robust alternative to step 2 might be to try to find the root directory of the current repo, then codeowners.locate
from that location. This seems like what other git-xyz
(the built-in ones, at least) do, so it'd make git-codeowners feel more like a first-party thing alongside those.