Merge branch 'lh/remote-branches'

This commit is contained in:
Lars Hjemli 2009-12-08 19:34:30 +01:00
commit 4e75d7c9b9
5 changed files with 18 additions and 0 deletions

View file

@ -187,6 +187,8 @@ void cgit_print_branches(int maxcount)
list.refs = NULL;
list.alloc = list.count = 0;
for_each_branch_ref(cgit_refs_cb, &list);
if (ctx.repo->enable_remote_branches)
for_each_remote_ref(cgit_refs_cb, &list);
if (maxcount == 0 || maxcount > list.count)
maxcount = list.count;