Beispiel #1
0
        /// <summary>Creates the 'push' command string. <example>"push --progress origin master:master"</example></summary>
        public override string ToString()
        {
            var args = new GitArgumentBuilder("push")
            {
                { ReportProgress, "--progress" },
                Remote.Quote(),
                PushActions.Select(action => action.ToString())
            };

            return(args.ToString());
        }
Beispiel #2
0
 public static string GetPushActionText(this TwoFactorPushAction pushAction)
 {
     return(PushActions.TryGetValue(pushAction, out var text) ? text : pushAction.ToString());
 }