Re: git locate
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 20, 2010, 09:32 UTC
- Message-ID
- <alpine.DEB.1.00.1001201021060.31129@intel-tinevez-2-302>
- In-Reply-To
- <m3zl49bk0o.fsf@localhost.localdomain>
Hi,
On Tue, 19 Jan 2010, Jakub Narebski wrote:
Show 11 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> 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"' -Ciao, Dscho