Adding HEAD decorator markup in the Graph

This commit is contained in:
Filipe Ramalho 2024-05-25 15:05:32 -03:00
parent 8aeb7ed17c
commit 4750ad0d07
4 changed files with 15 additions and 2 deletions

View file

@ -146,6 +146,15 @@ namespace SourceGit.Commands
Name = d.Substring(19).Trim(),
});
}
else if (d.Equals("HEAD"))
{
isHeadOfCurrent = true;
decorators.Add(new Models.Decorator()
{
Type = Models.DecoratorType.CurrentCommitHead,
Name = d.Trim(),
});
}
else if (d.StartsWith("refs/heads/", StringComparison.Ordinal))
{
decorators.Add(new Models.Decorator()