paths: refactor gitdir detection to a function
Refactors the logic that decides if a local directory is a git directory into a separate function. This will let us use it later on to integrate with Mercurial's new paths component.
Please register or sign in to comment