mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 01:54:28 +02:00
Merge branch 'lh/remote-branches'
This commit is contained in:
commit
4e75d7c9b9
5 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue