def cygpath(path):
 if (not path.startswith(('/cygdrive', '//'))):
  for (regex, parser, recurse) in _cygpath_parsers:
   match = regex.match(path)
   if match:
    path = parser(*match.groups())
    if recurse:
     path = cygpath(path)
    break
  else:
   path = _cygexpath(None, path)
 return path

def cygpath ( path ) : if ( not path . startswith ( ( '/cygdrive' , '//' ) ) ) : for ( regex , parser , recurse ) in _cygpath_parsers : match = regex . match ( path ) if match : path = parser ( * match . groups ( ) ) if recurse : path = cygpath ( path ) break else : path = _cygexpath ( None , path ) return path
use :meth:git .