GitCommands.GitCommands.MergeBranchCmd C# (CSharp) Method

MergeBranchCmd() public static method

public static MergeBranchCmd ( string branch, bool allowFastForward, string strategy ) : string
branch string
allowFastForward bool
strategy string
return string
        public static string MergeBranchCmd(string branch, bool allowFastForward, string strategy)
        {
            StringBuilder command = new StringBuilder("merge");

            if (!allowFastForward)
                command.Append(" --no-ff");
            if (!string.IsNullOrEmpty(strategy))
            {
                command.Append(" --strategy=");
                command.Append(strategy);
            }

            command.Append(" ");
            command.Append(branch);
            return command.ToString();
        }
GitCommands