You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
663 B
29 lines
663 B
namespace GitCommands
|
|
{
|
|
public class ShortDiffDto
|
|
{
|
|
public string From { get; set; }
|
|
public string To { get; set; }
|
|
public string Result { get; set; }
|
|
|
|
public ShortDiffDto(string from, string to)
|
|
{
|
|
From = from;
|
|
To = to;
|
|
}
|
|
}
|
|
|
|
public class ShortDiff
|
|
{
|
|
public ShortDiffDto Dto { get; set; }
|
|
public ShortDiff(ShortDiffDto dto)
|
|
{
|
|
Dto = dto;
|
|
}
|
|
|
|
public void Execute()
|
|
{
|
|
Dto.Result = GitCommandHelpers.RunCmd(Settings.GitCommand, "diff -z " + Dto.From + " " + Dto.To + " --shortstat");
|
|
}
|
|
}
|
|
}
|