/// <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()); }
public static string GetPushActionText(this TwoFactorPushAction pushAction) { return(PushActions.TryGetValue(pushAction, out var text) ? text : pushAction.ToString()); }