[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vc-git-grep vs project-find-regexp
From: |
Eli Zaretskii |
Subject: |
Re: vc-git-grep vs project-find-regexp |
Date: |
Mon, 21 Aug 2023 21:58:52 +0300 |
> From: Philip Kaludercic <philipk@posteo.net>
> Cc: emacs-devel@gnu.org
> Date: Mon, 21 Aug 2023 18:51:59 +0000
>
> I suspect the reason is that in the former case, you are actually using
> the "git grep" sub-command, that is more efficient, while
> `project-find-regexp' defers to `xref-matches-in-files' and uses
> `xref-search-program', which is set to regular "grep" by default.
Isn't this rather because vc-git-grep runs the shell command
asynchronously, whereas xref-matches-in-files runs synchronously?