Re: [PATCH] git-cget: prints elements of C code in the git repository
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 27, 2009, 11:26 UTC
- Message-ID
- <alpine.DEB.1.00.0903271225380.12753@intel-tinevez-2-302>
- In-Reply-To
- <25e057c00903270222v7acad9ebxf2ed4242570f3de5@mail.gmail.com>
Hi,
On Fri, 27 Mar 2009, roel kluin wrote:
Show 11 quoted lines
> Hi Johannes, > > > - it misdetects functions: trying > > > > $ ./git-cget -f get_sha1.* > > The .* is not strict enough. What you want to do instead is: > > $ ./git-cget -f "get_sha1[A-Za-z0-9_]*" > > and that will give correct matches.
No, the problem was that it did not show a function _definition_, but mistook a function _call_ for a definition.
Ciao, Dscho