public static ArgumentString ContinueBisectCmd(GitBisectOption bisectOption, params ObjectId[] revisions) { return(new GitArgumentBuilder("bisect") { bisectOption, revisions }); }
public static string ContinueBisectCmd(GitBisectOption bisectOption, params string[] revisions) { var bisectCommand = GetBisectCommand(bisectOption); if (revisions.Length == 0) { return(bisectCommand); } return(string.Format("{0} {1}", bisectCommand, string.Join(" ", revisions))); }
private static string GetBisectCommand(GitBisectOption bisectOption) { var args = new ArgumentBuilder { "bisect", bisectOption }; return(args.ToString()); }
public static string ContinueBisectCmd(GitBisectOption bisectOption, params string[] revisions) { var args = new ArgumentBuilder { "bisect", bisectOption, revisions }; return(args.ToString()); }
private static string GetBisectCommand(GitBisectOption bisectOption) { switch (bisectOption) { case GitBisectOption.Good: return("bisect good"); case GitBisectOption.Bad: return("bisect bad"); case GitBisectOption.Skip: return("bisect skip"); default: throw new NotSupportedException(string.Format("Bisect option {0} is not supported", bisectOption)); } }
/// <summary> /// Adds the git argument syntax for members of the <see cref="GitBisectOption"/> enum. /// </summary> /// <param name="builder">The <see cref="ArgumentBuilder"/> to add arguments to.</param> /// <param name="option">The enum member to add to the builder.</param> public static void Add(this ArgumentBuilder builder, GitBisectOption option) { builder.Add(GetArgument()); string GetArgument() { switch (option) { case GitBisectOption.Good: return("good"); case GitBisectOption.Bad: return("bad"); case GitBisectOption.Skip: return("skip"); default: throw new InvalidEnumArgumentException(nameof(option), (int)option, typeof(GitBisectOption)); } } }
private void ContinueBisect(GitBisectOption bisectOption) { if (Revisions.RowCount <= LastRowIndex || LastRowIndex < 0) return; FormProcess.ShowDialog(this, Module, GitCommandHelpers.ContinueBisectCmd(bisectOption, GetRevision(LastRowIndex).Guid), false); RefreshRevisions(); }
public static string ContinueBisectCmd(GitBisectOption bisectOption, params string[] revisions) { var bisectCommand = GetBisectCommand(bisectOption); if (revisions.Length == 0) return bisectCommand; return string.Format("{0} {1}", bisectCommand, string.Join(" ", revisions)); }
private static string GetBisectCommand(GitBisectOption bisectOption) { switch (bisectOption) { case GitBisectOption.Good: return "bisect good"; case GitBisectOption.Bad: return "bisect bad"; case GitBisectOption.Skip: return "bisect skip"; default: throw new NotSupportedException(string.Format("Bisect option {0} is not supported", bisectOption)); } }
private void ContinueBisect(GitBisectOption bisectOption) { FormProcess.ShowDialog(this, GitCommandHelpers.ContinueBisectCmd(bisectOption), false); Close(); }
private void ContinueBisect(GitBisectOption bisectOption) { FormProcess.ShowDialog(this, GitCommandHelpers.ContinueBisectCmd(bisectOption), false); Close(); }
private void ContinueBisect(GitBisectOption bisectOption) { FormProcess.ShowDialog(this, process: null, arguments: GitCommandHelpers.ContinueBisectCmd(bisectOption), Module.WorkingDir, input: null, useDialogSettings: false); Close(); }