public ReferencePushResult(PushResultType type, string localRefName, string remoteRefName, string summary) { _type = type; _localRefName = localRefName; _remoteRefName = remoteRefName; _summary = summary; }
private static char TypeToChar(PushResultType type) { switch (type) { case PushResultType.ForceUpdated: return('+'); case PushResultType.FastForwarded: return(' '); case PushResultType.Rejected: return('!'); case PushResultType.UpToDate: return('='); case PushResultType.DeletedReference: return('-'); case PushResultType.CreatedReference: return('*'); default: throw new ArgumentException("type"); } }
private static char TypeToChar(PushResultType type) => type switch {