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

Re: Change the grep command called by git with alternative tools, such as ug.

From
HZHongyi Zhao <hongyi.zhao@gmail.com>
Date
Jan 2, 2025, 13:39 UTC
Message-ID
<CAGP6POKLdTpwsaGo-oyGAiYJMRzwXN06rv3+V7v5QbL6xtDROw@mail.gmail.com>
In-Reply-To
<D6RLU4BY374I.GQY9MLMV1AZJ@cepl.eu>
On Thu, Jan 2, 2025 at 9:00 PM Matěj Cepl <mcepl@cepl.eu> wrote:
Show 11 quoted lines
>
> On Thu Jan 2, 2025 at 12:49 PM CET, Hongyi Zhao wrote:
> > $ git grep -i jobflow
> >
> > I tried to replace grep with ug, but failed as follows:
>
> AFAIK, git grep doesn’t use external grep(1) binary on its
> own, but rather it uses its own (and slightly different)
> algorithm. Certainly, calling git-ug (or git-rg) will do
> absolutely nothing as long as you have no git-ug binary in your
> $PATH.
Do you mean: by linking ug as git-ug will do the trick?
> Best,
>
> Matěj
Zhao
Previous: Matěj CeplNext: Matěj Cepl
Message 3 of 5 in “Change the grep command called by git with alternative tools, such as ug.”
  1. Hongyi ZhaoJan 2, 2025
  2. Matěj CeplJan 2, 2025
  3. Hongyi ZhaoJan 2, 2025
  4. Matěj CeplJan 2, 2025
  5. Jonathan NiederJan 2, 2025

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.