]> git.ipfire.org Git - thirdparty/git.git/commit - config.c
config: add new index.threads config setting
authorBen Peart <benpeart@microsoft.com>
Wed, 10 Oct 2018 15:59:35 +0000 (11:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Oct 2018 06:32:48 +0000 (15:32 +0900)
commitc780b9cfe8d79331ed9797e328b1bf80666c4ac2
tree3d842486adb1555fbc23590c9a89fd9c1835a52b
parent3b1d9e045e1ad6c2cd5cbe668ccb740a82b50efb
config: add new index.threads config setting

Add support for a new index.threads config setting which will be used to
control the threading code in do_read_index().  A value of 0 will tell the
index code to automatically determine the correct number of threads to use.
A value of 1 will make the code single threaded.  A value greater than 1
will set the maximum number of threads to use.

For testing purposes, this setting can be overwritten by setting the
GIT_TEST_INDEX_THREADS=<n> environment variable to a value greater than 0.

Signed-off-by: Ben Peart <benpeart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
config.c
config.h
t/README
t/t1700-split-index.sh