mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 20:09:23 +00:00
Show the checked out branch
This commit is contained in:
parent
dae47934b2
commit
e4741b1512
|
@ -107,12 +107,7 @@ namespace GitgHistory
|
|||
|
||||
try
|
||||
{
|
||||
head = repo.lookup_reference("HEAD");
|
||||
|
||||
if (head.get_reference_type() != Ggit.RefType.SYMBOLIC)
|
||||
{
|
||||
head = null;
|
||||
}
|
||||
head = repo.get_head();
|
||||
} catch {}
|
||||
|
||||
if (CommandLine.all)
|
||||
|
@ -133,7 +128,7 @@ namespace GitgHistory
|
|||
string? icon = null;
|
||||
bool isdef = false;
|
||||
|
||||
if (head != null && item.get_name() == head.get_name())
|
||||
if (head != null && item.get_target().equal(head.get_target()))
|
||||
{
|
||||
icon = "object-select-symbolic";
|
||||
|
||||
|
|
Loading…
Reference in a new issue