@staticmethod<EOL><INDENT>def which(cwd=None):  <DEDENT>
if cwd is None:<EOL><INDENT>cwd = os.getcwd()<EOL><DEDENT>for (k, using_vc) in globals().items():<EOL><INDENT>if k.startswith('<STR_LIT>') and using_vc(cwd=cwd):<EOL><INDENT>return VersionControl.from_string(k[<NUM_LIT:6>:])<EOL><DEDENT><DEDENT>raise NotImplementedError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>
Try to find which version control system contains the cwd directory.

        Returns the VersionControl superclass e.g. Git, if none were
        found this will raise a NotImplementedError.