From: Sverre Rabbelier Date: Mon, 15 Feb 2010 13:20:35 GMT Subject: Re: git locate Message-ID: In-Reply-To: <4B579BA8.8050000@gmail.com> Heya, On Thu, Jan 21, 2010 at 01:11, SungHyun Nam 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