threads / discuss / 7721

git pickaxe - more confusion

Subject: git pickaxe - more confusion

## tl;dr

2 messages between Apr 17, 2007 and Apr 17, 2007.

replies: 1people: 1as markdown or json

Martin Langhoff· Apr 17, 2007, 23:31 UTC · lore

Call me blunt, I cannot figure out how to use git pickaxe on a subdir. As it's aliased to blame it really wants a file, but I have a couple of top-level directories I want it to scan for a constant.

In short,
     git pickaxe -L '/CURLOPT_SSL/' origin/cvshead -- mnet lib/mnet

doesn't want to play with me. I initially tried with -S but the new way of doing it is -L, it seems -- passing the regex where the line numbers should be ;-)

cheers,
martin
Martin Langhoff· Apr 17, 2007, 23:42 UTC · re: Martin Langhoff · lore

Re: git pickaxe - more confusion

On 4/18/07, Martin Langhoff <martin.langhoff@gmail.com> wrote:
Show 5 quoted lines
> In short,
>
>      git pickaxe -L '/CURLOPT_SSL/' origin/cvshead -- mnet lib/mnet
>
> doesn't want to play with me. I initially tried with -S but the new

And I was trying the new pickaxe because oldstyle git-whatchanged was messing up with my head because the space after the -S parameter is not valid syntax.

Doesn't work:
        git whatchanged -p -S 'CURLOPT_' cvshead -- mnet lib/mnet
Works:
        git whatchanged -p -S'CURLOPT_' cvshead -- mnet lib/mnet

So -- I'm sorted with this but it's not actually described anywhere I can see :-/ -- I only realised that reading Linus' old posts showing off pickaxe there was no space after the -S and gave it a go.

Weird semantics!
martin

← back to recent threads