summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorRasmus Villemoes <rv@rasmusvillemoes.dk>2018-02-23 15:47:57 +0100
committerJunio C Hamano <gitster@pobox.com>2018-02-23 12:23:50 -0800
commit38ef24dccfb696393d2e8e701bf2f81c9e6275e2 (patch)
tree437d07d912e8f2966dc52aab67e8c9c9af15b8e5 /builtin/commit.c
parente2e05d619a71ae2c06ebd3c661260bf4b5039a93 (diff)
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/commit.c')
0 files changed, 0 insertions, 0 deletions