summaryrefslogtreecommitdiff
path: root/builtin/pack-objects.c
diff options
context:
space:
mode:
authorLibravatar Rasmus Villemoes <rv@rasmusvillemoes.dk>2018-02-23 15:47:57 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-02-23 12:23:50 -0800
commit38ef24dccfb696393d2e8e701bf2f81c9e6275e2 (patch)
tree437d07d912e8f2966dc52aab67e8c9c9af15b8e5 /builtin/pack-objects.c
parentgrep: move grep_source_init outside critical section (diff)
downloadtgif-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/pack-objects.c')
0 files changed, 0 insertions, 0 deletions