mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-11-04 21:16:52 +00:00
limit history retrieving
This commit is contained in:
parent
da0e21aa13
commit
5390732d4f
1 changed files with 4 additions and 0 deletions
|
@ -393,6 +393,7 @@ namespace Gitg
|
|||
d_id_hash = new Gee.HashMap<Ggit.OId, int>((i) => { return i.hash(); }, (a, b) => { return a.equal(b); });
|
||||
}
|
||||
|
||||
int count = 0;
|
||||
while (true)
|
||||
{
|
||||
Ggit.OId? id;
|
||||
|
@ -406,6 +407,9 @@ namespace Gitg
|
|||
try
|
||||
{
|
||||
id = d_walker.next();
|
||||
count++;
|
||||
if (count >= 10)
|
||||
break;
|
||||
|
||||
if (id == null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue