mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
20 lines
489 B
C#
20 lines
489 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;
|
|
}
|
|
}
|
|
}
|