Subject: Re: git locate

From: Jakub Narebski <[email-masked]>
Date: Wed, 20 Jan 2010 11:06:19 +0100

On Wed, 20 Jan 2010, Johannes Schindelin wrote:
> On Tue, 19 Jan 2010, Jakub Narebski wrote:
>> Johannes Schindelin <[email-masked]> writes:
>>> On Wed, 20 Jan 2010, John Tapsell wrote:
>>> 
>>>>   Could we add a:  git locate <filename>       or git find <filename>
>>> 
>>> How about "git ls-files \*<filename>"?
>> 
>> Or "git ls-files '*filename'...
>> 
>> ... but how to make an (git) alias for this?
> 
> Add something like this to your $HOME/.gitconfig:
> 
> [alias]
>         locate = !sh -c 'git ls-files "\\*$1"' -

Thanks a lot, Dscho!

I think it would be nice to have this trick 

  alias.<cmd> = !sh -c '<commands with $1, $@, $#>' -

described in git-config (alias) documentation.  Unfortunately I don't
understand this trick well enough to do it myself...

-- 
Jakub Narebski
Poland