{"thread":{"id":"20379","subject":"is there a 'git find'?","startedAt":"2009-08-05T04:14:29Z","lastAt":"2009-08-05T04:38:06Z","messageCount":3,"participants":["E R","Sverre Rabbelier","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"119557","messageId":"3a69fa7c0908042114v7097e87esbe18f49eef9267f5@mail.gmail.com","threadId":"20379","inReplyTo":null,"subject":"is there a 'git find'?","fromName":"E R","fromEmail":"pc88mxer@gmail.com","sentAt":"2009-08-05T04:14:29Z","receivedAt":"2009-08-05T04:14:29Z","isPatch":false,"sender":{"key":"pc88mxer@gmail.com","avatar":null},"body":"Hi,\n\nWithin a specific commit I'd like to find all the files whose path\nnames match a regular expression.\n\nWithout checking out the commit, is there a way to do this? I'd like\nto add this feature to gitweb.\n\nThanks,\n\nER\n"},{"id":"119558","messageId":"fabb9a1e0908042137x68beaeccv69a6974b41584ef4@mail.gmail.com","threadId":"20379","inReplyTo":"3a69fa7c0908042114v7097e87esbe18f49eef9267f5@mail.gmail.com","subject":"Re: is there a 'git find'?","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2009-08-05T04:37:39Z","receivedAt":"2009-08-05T04:37:39Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Tue, Aug 4, 2009 at 21:14, E R<pc88mxer@gmail.com> wrote:\n> Within a specific commit I'd like to find all the files whose path\n> names match a regular expression.\n\nTry 'git ls-files' [0].\n\n[0] https://www.cs.drexel.edu/cgi-bin/manServer.pl/usr/share/man/man1/git-ls-files.1\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"119559","messageId":"7veirqub81.fsf@alter.siamese.dyndns.org","threadId":"20379","inReplyTo":"3a69fa7c0908042114v7097e87esbe18f49eef9267f5@mail.gmail.com","subject":"Re: is there a 'git find'?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-08-05T04:38:06Z","receivedAt":"2009-08-05T04:38:06Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"E R <pc88mxer@gmail.com> writes:\n\n> Within a specific commit I'd like to find all the files whose path\n> names match a regular expression.\n\n    git ls-tree -r [--name-only | -t] \"$commit\" | grep -e \"$pattern\"\n\n?\n"}]}