public GetRemotes ( bool allowEmpty = true ) : string[] | ||
allowEmpty | bool | |
return | string[] |
public string[] GetRemotes(bool allowEmpty = true)
{
string remotes = RunGitCmd("remote show");
return allowEmpty ? remotes.Split('\n') : remotes.Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
}