Thread (1 message) 1 message, 1 author, 2016-06-15
  • (off-list ancestor, not in this archive)
  • Re: git locate · Matthieu Moy <hidden> · 2016-06-15

Re: git locate

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:48:54

Bruce Stephens [off-list ref] writes:
John Tapsell [off-list ref] writes:

[...]
quoted
Actually could someone help me with this.. the trouble is that this
returns paths relative to the root.

Can I get it to find all the files, but relative to where I am now?
Something like this is probably part of the answer, which allows an
alias like this to work:

	locate = !cd $GIT_CWD && sh -c 'git ls-files "*$1*"' -
There's a patch pending to do more or less the same thing:

  http://thread.gmane.org/gmane.comp.version-control.git/146360/focus=146450

Read Junio's reply there:

  http://thread.gmane.org/gmane.comp.version-control.git/146360/focus=146450

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help