git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Maybe there should be a git-grep plumbing interface for ack et al.

From
Andy Lester <andy@petdance.com>
Date
Jan 10, 2011, 03:38 UTC
Message-ID
<A206547D-A7FF-49CD-A122-0FDCD2FBF452@petdance.com>
In-Reply-To
<AANLkTi=E0x55-RUz5CJXL_LJ6hPr--Nupp-Ti72kpNv=@mail.gmail.com>
On Jan 9, 2011, at 4:17 PM, Ævar Arnfjörð Bjarmason wrote:
> Then e.g. ack(1) could use this new plumbing command to read files
> when in a git repository, but could provide Perl's regex features and
> other things it has.
The plan for ack 2.0 is to have plugins that anyone can write to allow acking for whatever you want.  You'll write a plugin for PDF files and go acking for text in there, or an Excel file, or some file that specifies a Postgresql table, or whatever.  It's up to the plugin to figure out how that happens.  I'm not interested in writing hooks to git or any file system any more complicated than straight calls to open(), but plugin writers will have the flexibility to do it themselves.
xoa

-- Andy Lester => andy@petdance.com => www.techworklove.com => AIM:petdance

Previous: Ævar Arnfjörð Bjarmason
Message 2 of 2 in “Maybe there should be a git-grep plumbing interface for ack et al.”
  1. Ævar Arnfjörð BjarmasonJan 9, 2011
  2. Andy LesterJan 10, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.