user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH] init: enable pack bitmaps by default
@ 2016-09-02  2:04  7% Eric Wong
  0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-09-02  2:04 UTC (permalink / raw)
  To: meta

We want to encourage users to serve repositories.  So enable
bitmaps by default so performance suffers less with smart HTTP.
---
 script/public-inbox-init | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/script/public-inbox-init b/script/public-inbox-init
index 54d6ce4..739ec9e 100755
--- a/script/public-inbox-init
+++ b/script/public-inbox-init
@@ -63,6 +63,10 @@ my $pfx = "publicinbox.$name";
 my @x = (qw/git config/, "--file=$filename");
 $git_dir = abs_path($git_dir);
 x(qw(git init -q --bare), $git_dir);
+
+# set a reasonable default:
+x(qw/git config/, "--file=$git_dir/config", 'repack.writeBitmaps', 'true');
+
 foreach my $addr (@address) {
 	next if $seen{lc($addr)};
 	x(@x, "--add", "$pfx.address", $addr);
-- 
EW


^ permalink raw reply related	[relevance 7%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-09-02  2:04  7% [PATCH] init: enable pack bitmaps by default Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).