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();
}