Re: [PATCH] grep: load funcname patterns for -W
- From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
- Date
- Nov 25, 2011, 16:32 UTC
- Message-ID
- <4ECFC320.4030003@lsrfire.ath.cx>
- In-Reply-To
- <5e3bcf651b31b299ca411296e6e7c4d11f6ae617.1322232319.git.trast@student.ethz.ch>
Am 25.11.2011 15:46, schrieb Thomas Rast:
Show 8 quoted lines
> git-grep avoids loading the funcname patterns unless they are needed. > ba8ea74 (grep: add option to show whole function as context, > 2011-08-01) forgot to extend this test also to the new funcbody > feature. Do so. > > The catch is that we also have to disable threading when using > userdiff, as explained in grep_threads_ok(). So we must be careful to > introduce the same test there.
Oops. Thanks for catching this.
That reminds me to look into adding a thread-safe way to access attributes again..
Thanks, René