def _which_git_config(global_, cwd, user, password):
 if global_:
  return ['--global']
 version_ = _LooseVersion(version(versioninfo=False))
 if (version_ >= _LooseVersion('1.7.10.2')):
  return ['--local']
 else:
  return ['--file', _git_config(cwd, user, password)]

def _which_git_config ( global_ , cwd , user , password ) : if global_ : return [ '--global' ] version_ = _LooseVersion ( version ( versioninfo = False ) ) if ( version_ >= _LooseVersion ( '1.7.10.2' ) ) : return [ '--local' ] else : return [ '--file' , _git_config ( cwd , user , password ) ]
based on whether global or local config is desired .