Git development
 help / color / mirror / Atom feed
From: Andy Lester <andy@petdance.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: perl5-porters@perl.org, Git Mailing List <git@vger.kernel.org>
Subject: Re: Maybe there should be a git-grep plumbing interface for ack et al.
Date: Sun, 9 Jan 2011 21:38:14 -0600	[thread overview]
Message-ID: <A206547D-A7FF-49CD-A122-0FDCD2FBF452@petdance.com> (raw)
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

      reply	other threads:[~2011-01-10  3:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-09 22:17 Maybe there should be a git-grep plumbing interface for ack et al Ævar Arnfjörð Bjarmason
2011-01-10  3:38 ` Andy Lester [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A206547D-A7FF-49CD-A122-0FDCD2FBF452@petdance.com \
    --to=andy@petdance.com \
    --cc=avarab@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=perl5-porters@perl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox