summaryrefslogtreecommitdiff
path: root/blob.h
diff options
context:
space:
mode:
authorThomas Rast <trast@student.ethz.ch>2011-12-12 21:16:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-12-16 23:47:10 (GMT)
commit0579f91dd74a0902e52d1e6e839cc31b99f12cfc (patch)
tree89caa085455a31a6e3b46434a258d630fb8c7154 /blob.h
parentb8ffedca6f9e1043956ba611ae52bea449779456 (diff)
downloadgit-0579f91dd74a0902e52d1e6e839cc31b99f12cfc.zip
git-0579f91dd74a0902e52d1e6e839cc31b99f12cfc.tar.gz
git-0579f91dd74a0902e52d1e6e839cc31b99f12cfc.tar.bz2
grep: enable threading with -p and -W using lazy attribute lookup
Lazily load the userdiff attributes in match_funcname(). Use a separate mutex around this loading to protect the (not thread-safe) attributes machinery. This lets us re-enable threading with -p and -W while reducing the overhead caused by looking up attributes. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blob.h')
0 files changed, 0 insertions, 0 deletions