aboutsummaryrefslogtreecommitdiff
path: root/git-instaweb.sh
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-11-11 13:26:18 +0100
committerJunio C Hamano <gitster@pobox.com>2010-11-17 13:04:52 -0800
commitfc5b8e0163fc9e37707d22dbc484a59040c48292 (patch)
tree9a3255e04405e7e6496ee95d15f36238a9ec5de7 /git-instaweb.sh
parent9d0d42f3450fe34737f92b9bde31ac1cf6deeadb (diff)
downloadgit-fc5b8e0163fc9e37707d22dbc484a59040c48292.tar.gz
git-fc5b8e0163fc9e37707d22dbc484a59040c48292.tar.xz
git instaweb: enable remote_heads
When using git instaweb to browse a local repository, performance is much less of an issue, and providing as much information as possible has a higher priority, so it makes sense to enable remote_heads. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-instaweb.sh')
-rwxr-xr-xgit-instaweb.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-instaweb.sh b/git-instaweb.sh
index e6f6ecda1..10fcebb11 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -580,6 +580,8 @@ gitweb_conf() {
our \$projectroot = "$(dirname "$fqgitdir")";
our \$git_temp = "$fqgitdir/gitweb/tmp";
our \$projects_list = \$projectroot;
+
+\$feature{'remote_heads'}{'default'} = [1];
EOF
}