Re: git locate
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Feb 15, 2010, 13:20 UTC
- Message-ID
- <fabb9a1e1002150520v29cf8d59ke27cde3e9697b011@mail.gmail.com>
- In-Reply-To
- <4B579BA8.8050000@gmail.com>
Heya,
On Thu, Jan 21, 2010 at 01:11, SungHyun Nam <goweol@gmail.com> wrote:
> The alias 'git locate' and the command 'git ls-files' runs > differently if I run them in a subdirectory. > Is it expected?
I just ran into this (I wanted to alias 'git find' but to me the 'run ls-files from cwd' is desirable. Also, I prefer to have a trailing glob as well, so I added one :). An easy solution is to drop 'git-find' in your path somewhere:
sverre@laptop-sverre:~/bin$ cat git-find #!/bin/bash
git ls-files "*$1*"
-- Cheers, Sverre Rabbelier