mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-26 21:17:20 -08:00
21 lines
490 B
C#
21 lines
490 B
C#
|
namespace SourceGit.Commands
|
|||
|
{
|
|||
|
public class IsConflictResolved : Command
|
|||
|
{
|
|||
|
public IsConflictResolved(string repo, Models.Change change)
|
|||
|
{
|
|||
|
var opt = new Models.DiffOption(change, true);
|
|||
|
|
|||
|
WorkingDirectory = repo;
|
|||
|
Context = repo;
|
|||
|
Args = $"diff -a --ignore-cr-at-eol --check {opt}";
|
|||
|
}
|
|||
|
|
|||
|
public bool Result()
|
|||
|
{
|
|||
|
var rs = ReadToEnd();
|
|||
|
return rs.IsSuccess;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|