本文整理汇总了C#中GitBisectOption类的典型用法代码示例。如果您正苦于以下问题:C# GitBisectOption类的具体用法?C# GitBisectOption怎么用?C# GitBisectOption使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GitBisectOption类属于命名空间,在下文中一共展示了GitBisectOption类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ContinueBisect
private void ContinueBisect(GitBisectOption bisectOption)
{
if (Revisions.RowCount <= LastRowIndex || LastRowIndex < 0)
return;
FormProcess.ShowDialog(this, Module, GitCommandHelpers.ContinueBisectCmd(bisectOption, GetRevision(LastRowIndex).Guid), false);
RefreshRevisions();
}
示例2: GetBisectCommand
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));
}
}
示例3: ContinueBisectCmd
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));
}
示例4: ContinueBisect
private void ContinueBisect(GitBisectOption bisectOption)
{
FormProcess.ShowDialog(this, GitCommandHelpers.ContinueBisectCmd(bisectOption), false);
Close();
}