Thread (14 messages) flat view 14 messages, 8 authors, 2016-06-15

Re: git locate

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:48:04

Hi,

On Tue, 19 Jan 2010, Jakub Narebski wrote:
Johannes Schindelin [off-list ref] writes:
quoted
On Wed, 20 Jan 2010, John Tapsell wrote:
quoted
  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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help