提问人:ks1322 提问时间:10/13/2023 更新时间:10/13/2023 访问量:59
有没有办法 git grep stdin?
Is there a way to git grep stdin?
问:
我想与从 stdin 获取的输入一起使用。有一个选项,但根据文档,它只允许当前目录中的 grep 文件:git grep
--no-index
--无索引
搜索当前目录中不受 Git 管理的文件。
我想使用,因为它有一个选项--function-context
,而普通的grep没有它。有没有办法做到这一点?git grep
git grep
答: 暂无答案
评论
git grep
cat
git grep --no-index --function-context