mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
Adding HEAD decorator markup in the Graph
This commit is contained in:
parent
8aeb7ed17c
commit
4750ad0d07
4 changed files with 15 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue