git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Getting pickaxe to perform looser matches, or regex matching
@ 2012-06-07 16:43 Martin Langhoff
  2012-06-07 17:58 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Langhoff @ 2012-06-07 16:43 UTC (permalink / raw)
  To: Git Mailing List

I am a regular user of gitk's nice pickaxe search field. But it will often
fail to find what I am looking for because the part of the string I can
provide is not the part that changes.

For example, I am looking for patches that change any calls to function
foo(). I want to match on

- foo(1, 0, 1024)
+ foo(0, 1024, 1)

but I don't know the parameters. As the "pickaxe" sections in gitdiffcore
and git log manpages indicate, it won't match on -S'foo' because foo itself
was not added or removed.

A regex like "foo(.*" would work, but pickaxe doesn't seem to take
regexes, and while I could roll my own wrapper around git-log --patch,
this sounds like an important and useful variant to pickaxe that is
missing.

Or that has a hidden switch I haven't found ;-)



m
--
 martin.langhoff@gmail.com
 martin@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-07 18:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-07 16:43 Getting pickaxe to perform looser matches, or regex matching Martin Langhoff
2012-06-07 17:58 ` Junio C Hamano
2012-06-07 18:48   ` Martin Langhoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).