git-codeowners icon indicating copy to clipboard operation
git-codeowners copied to clipboard

Discover current git repo

Open spencerwilson opened this issue 5 years ago • 0 comments

Currently the CODEOWNERS-finding algorithm of this app is:

  1. Was a path specified via -c path/to/CODEOWNERS? If so, try to use it.
  2. 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.

spencerwilson avatar Nov 12 '19 02:11 spencerwilson