* is there a 'git find'?
@ 2009-08-05 4:14 E R
2009-08-05 4:37 ` Sverre Rabbelier
2009-08-05 4:38 ` Junio C Hamano
0 siblings, 2 replies; 3+ messages in thread
From: E R @ 2009-08-05 4:14 UTC (permalink / raw)
To: git
Hi,
Within a specific commit I'd like to find all the files whose path
names match a regular expression.
Without checking out the commit, is there a way to do this? I'd like
to add this feature to gitweb.
Thanks,
ER
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: is there a 'git find'?
2009-08-05 4:14 is there a 'git find'? E R
@ 2009-08-05 4:37 ` Sverre Rabbelier
2009-08-05 4:38 ` Junio C Hamano
1 sibling, 0 replies; 3+ messages in thread
From: Sverre Rabbelier @ 2009-08-05 4:37 UTC (permalink / raw)
To: E R; +Cc: git
Heya,
On Tue, Aug 4, 2009 at 21:14, E R<pc88mxer@gmail.com> wrote:
> Within a specific commit I'd like to find all the files whose path
> names match a regular expression.
Try 'git ls-files' [0].
[0] https://www.cs.drexel.edu/cgi-bin/manServer.pl/usr/share/man/man1/git-ls-files.1
--
Cheers,
Sverre Rabbelier
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: is there a 'git find'?
2009-08-05 4:14 is there a 'git find'? E R
2009-08-05 4:37 ` Sverre Rabbelier
@ 2009-08-05 4:38 ` Junio C Hamano
1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2009-08-05 4:38 UTC (permalink / raw)
To: E R; +Cc: git
E R <pc88mxer@gmail.com> writes:
> Within a specific commit I'd like to find all the files whose path
> names match a regular expression.
git ls-tree -r [--name-only | -t] "$commit" | grep -e "$pattern"
?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-05 4:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-05 4:14 is there a 'git find'? E R
2009-08-05 4:37 ` Sverre Rabbelier
2009-08-05 4:38 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).