def _worktrees_supported():
 try:
  return (_git_version() >= LooseVersion('2.5.0').encode())
 except AttributeError:
  return False

def _worktrees_supported ( ) : try : return ( _git_version ( ) >= LooseVersion ( '2.5.0' ) . encode ( ) ) except AttributeError : return False
check if the git version is 2 .