Esempio n. 1
0
 public ReferencePushResult(PushResultType type, string localRefName, string remoteRefName, string summary)
 {
     _type          = type;
     _localRefName  = localRefName;
     _remoteRefName = remoteRefName;
     _summary       = summary;
 }
Esempio n. 2
0
        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");
            }
        }
Esempio n. 3
0
 private static char TypeToChar(PushResultType type)
 => type switch
 {