unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Yuri Khan <yuri.v.khan@gmail.com>
To: Torsten Bronger <bronger@physik.rwth-aachen.de>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: find-grep-dired: skip .git
Date: Thu, 17 Apr 2014 21:56:37 +0700	[thread overview]
Message-ID: <CAP_d_8VGt-=61emcg-tC4LutYq_5jXFaSvEyP_cSqd8xEP-7oQ@mail.gmail.com> (raw)
In-Reply-To: <87vbu81733.fsf@physik.rwth-aachen.de>

On Thu, Apr 17, 2014 at 7:19 PM, Torsten Bronger
<bronger@physik.rwth-aachen.de> wrote:

> I think my find-grep-dired actions lose a lot of time in .git
> subdirs.  Can I tell Emacs somehow to skip them always?

Although this is not what you ask for, you might try ‘grep’ using the
following value of ‘grep-command’:

git --no-pager grep -nH -Ee ''

(you put the regexp between those quotes).


Alternatively, you might try diving into sources of ‘find-grep-dired’
and getting dired to run on the result of “git --no-pager grep -l -Ee
'your_regex' | xargs ls”, but this assumes you are on a unix-like
system.



  reply	other threads:[~2014-04-17 14:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-17 12:19 find-grep-dired: skip .git Torsten Bronger
2014-04-17 14:56 ` Yuri Khan [this message]
2014-04-17 15:00 ` Eli Zaretskii
     [not found] ` <mailman.19778.1397746836.10748.help-gnu-emacs@gnu.org>
2014-04-17 15:10   ` Torsten Bronger
2014-04-17 15:16 ` Sergei Organov

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CAP_d_8VGt-=61emcg-tC4LutYq_5jXFaSvEyP_cSqd8xEP-7oQ@mail.gmail.com' \
    --to=yuri.v.khan@gmail.com \
    --cc=bronger@physik.rwth-aachen.de \
    --cc=help-gnu-emacs@gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).