@@ -389,6 +389,8 @@ include::config/instaweb.txt[]
include::config/interactive.txt[]
+include::config/job.txt[]
+
include::config/log.txt[]
include::config/mailinfo.txt[]
new file mode 100644
@@ -0,0 +1,6 @@
+job.pack-files.batchSize::
+ This string value `<size>` will be passed to the
+ `git multi-pack-index repack --batch-size=<size>` command as
+ part of `git run-job pack-files`. If not specified, then a
+ dynamic size calculation is run. See linkgit:git-run-job[1]
+ for more details.
@@ -327,6 +327,7 @@ static int multi_pack_index_repack(unsigned long batch_size)
int result;
struct argv_array cmd = ARGV_ARRAY_INIT;
struct strbuf batch_arg = STRBUF_INIT;
+ const char *config_value;
int count;
off_t default_size = get_auto_pack_size(&count);
@@ -336,7 +337,11 @@ static int multi_pack_index_repack(unsigned long batch_size)
strbuf_addstr(&batch_arg, "--batch-size=");
if (batch_size != UNSET_BATCH_SIZE)
- strbuf_addf(&batch_arg, "\"%"PRIuMAX"\"", (uintmax_t)batch_size);
+ strbuf_addf(&batch_arg, "\"%"PRIuMAX"\"", (uintmax_t) batch_size);
+ else if (!repo_config_get_string_const(the_repository,
+ "job.pack-file.batchsize",
+ &config_value))
+ strbuf_addf(&batch_arg, "\"%s\"", config_value);
else
strbuf_addf(&batch_arg, "%"PRIuMAX,
(uintmax_t)default_size);