public static synchronized boolean existsInstance ( File path ) { String canonicalPath = "" ; try { canonicalPath = path . getCanonicalPath ( ) ; } catch ( IOException e ) { //obviously, the answer is NO return false ; } return INSTANCES . containsKey ( canonicalPath ) ; }
Checks if there is a DotGit instance for a given path