detect which version control software manages a file path