Re: git locate
- From
John Tapsell <johnflux@gmail.com>
- Date
- Jan 20, 2010, 11:07 UTC
- Message-ID
- <43d8ce651001200307r651a6a54ib298c4b708016b11@mail.gmail.com>
- In-Reply-To
- <201001201106.20739.jnareb@gmail.com>
2010/1/20 Jakub Narebski <jnareb@gmail.com>:
Show 18 quoted lines
> On Wed, 20 Jan 2010, Johannes Schindelin wrote: >> On Tue, 19 Jan 2010, Jakub Narebski wrote: >>> 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"' - >
I think having this alias by default would be very nice though - it's pretty common to locate/find files, and it's nice to have unixy equivalents in git.
If this really isn't wanted, then perhaps the ls-files command should be bash auto-completed?
Thanks!
John