Skip to content
  • Ben Peart's avatar
    config: add new index.threads config setting · c780b9cf
    Ben Peart authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarBen Peart <benpeart@microsoft.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    c780b9cf