grep: slight refactoring to the code that disables threading
commit044b1f3cb4ff09551f6c514ed02edafa6c4987b0
authorVictor Leschuk <vleschuk@gmail.com>
Tue, 15 Dec 2015 15:31:39 +0000 (15 18:31 +0300)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Dec 2015 18:49:57 +0000 (15 10:49 -0800)
treeef1a27383553feda67e5543b0e081592eda05506
parentb6b468b2bfaa8015568efad8e0a78b342e1ac640
grep: slight refactoring to the code that disables threading

When show-in-pager option is used, threading is unconditionally
disabled, but this happened much earlier than the code that
determines the use of threading based on the operand (i.e. we do not
thread search in the object database).  Consolidate the code to
disable threading to just one place.

Signed-off-by: Victor Leschuk <vleschuk@accesssoftek.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/grep.c