private void onData()
{
List<GitItemStatus> unstaged = GitCommands.GitCommands.GetAllChangedFilesFromString
(
gitGetUnstagedCommand.Output.ToString()
);
List<GitItemStatus> staged = GitCommands.GitCommands.GetStagedFiles();
if (staged.Count == 0 && unstaged.Count == 0)
{
Image = ICON_CLEAN;
}
else
{
if (staged.Count == 0)
{
Image = ICON_DIRTY;
}
else if (unstaged.Count == 0)
{
Image = ICON_STAGED;
}
else
{
Image = ICON_MIXED;
}
}
Text = string.Format("{0} changes", staged.Count + unstaged.Count);
}