diff options
author | Rasmus Villemoes <rv@rasmusvillemoes.dk> | 2018-02-23 15:47:57 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-23 12:23:50 -0800 |
commit | 38ef24dccfb696393d2e8e701bf2f81c9e6275e2 (patch) | |
tree | 437d07d912e8f2966dc52aab67e8c9c9af15b8e5 /builtin/mv.c | |
parent | grep: move grep_source_init outside critical section (diff) | |
download | tgif-38ef24dccfb696393d2e8e701bf2f81c9e6275e2.tar.xz |
grep: simplify grep_oid and grep_file
In the NO_PTHREADS or !num_threads case, this doesn't change
anything. In the threaded case, note that grep_source_init duplicates
its third argument, so there is no need to keep [path]buf.buf alive
across the call of add_work().
Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/mv.c')
0 files changed, 0 insertions, 0 deletions