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

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

From
HZHongyi Zhao <hongyi.zhao@gmail.com>
Date
Jan 2, 2025, 11:48 UTC
Message-ID
<CAGP6POJX9GFsNkgGd7o9Pr-tFoz0sgRk51vVG4P0Kn1DPZe+3Q@mail.gmail.com>
Hi there,

Can I change the grep command called by git with alternative tools, such as ug [1]?

Say in the following command:
$ git grep -i jobflow
I tried to replace grep with ug, but failed as follows:

$ git ug -i jobflow git: 'ug' is not a git command. See 'git --help'.

The most similar command is
    gui
[1] https://github.com/Genivia/ugrep

Regards, Zhao

-- 
Assoc. Prof. Hongsheng Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
Next: Matěj Cepl
Message 1 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.