[PATCH 09/14] gitweb: split heads list in head view if appropriate
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
---
gitweb/gitweb.perl | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 6dfb2f4..09d9793 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -4195,6 +4195,9 @@ sub git_heads {
my @headslist = git_get_heads_list();
if (@headslist) {
+ my ($remote_heads) = gitweb_check_feature('remote_heads');
+ $remote_heads ?
+ git_split_heads_body(\@headslist, $head) :
git_heads_body(\@headslist, $head);
}
git_footer_html();
--
1.5.2.5