diff options
author | Jeff King <peff@peff.net> | 2017-02-14 01:02:38 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-14 11:13:25 -0800 |
commit | a0fe2b0d2329d38a08c03427917b21be818bec1f (patch) | |
tree | 6c2efa91a54f215f91b8dd0cc7c6749e7ff6be2b /contrib/hooks/setgitperms.perl | |
parent | Git 2.12-rc1 (diff) | |
download | tgif-a0fe2b0d2329d38a08c03427917b21be818bec1f.tar.xz |
grep: move thread initialization a little lower
Originally, we set up the threads for grep before parsing
the non-option arguments. In 53b8d931b (grep: disable
threading in non-worktree case, 2011-12-12), the thread code
got bumped lower in the function because it now needed to
know whether we got any revision arguments.
That put a big block of code in between the parsing of revs
and the parsing of pathspecs, both of which share some loop
variables. That makes it harder to read the code than the
original, where the shared loops were right next to each
other.
Let's bump the thread initialization until after all of the
parsing is done.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/hooks/setgitperms.perl')
0 files changed, 0 insertions, 0 deletions