Show detached head in the commit list

https://bugzilla.gnome.org/show_bug.cgi?id=720729
This commit is contained in:
Techlive Zheng 2013-12-10 18:18:00 +08:00
parent 6c5ee093d3
commit c1757df037

View file

@ -185,6 +185,11 @@ namespace GitgHistory
return 0;
});
if (repo.is_head_detached())
{
d_all.prepend(repo.get_head());
}
} catch {}
d_all.reverse();