From: Johannes Schindelin Date: Wed, 20 Jan 2010 11:43:21 GMT Subject: Re: git locate Message-ID: In-Reply-To: <201001201106.20739.jnareb@gmail.com> Hi, On Wed, 20 Jan 2010, Jakub Narebski wrote: > On Wed, 20 Jan 2010, Johannes Schindelin wrote: > > On Tue, 19 Jan 2010, Jakub Narebski wrote: > >> Johannes Schindelin writes: > >>> On Wed, 20 Jan 2010, John Tapsell wrote: > >>> > >>>> Could we add a: git locate or git find > >>> > >>> How about "git ls-files \*"? > >> > >> 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. = !sh -c '' - Heh. I initially read @$^&*#^&*@#$. > described in git-config (alias) documentation. Unfortunately I don't > understand this trick well enough to do it myself... I tried to explain things properly in http://git.wiki.kernel.org/index.php/Aliases#Advanced_aliases_with_arguments Ciao, Dscho