From 169437b2d5bd14b4ab4d7bb30cc14da99c578205 Mon Sep 17 00:00:00 2001 From: Lucas Larson Date: Mon, 13 Mar 2023 14:26:46 -0400 Subject: [PATCH] add `git grep` to `--only-matching`-capable utilities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `git grep -o` (`git grep --only-matching`) has been able to print only the matched parts of a line since v2.19.0 released in 2018ยน this commit may fix #133 1. https://git.kernel.org/pub/scm/git/git.git/commit/?id=9d8db06eb4a5d5577db559a0059a377914c1ce5a Signed-off-by: Lucas Larson --- features.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features.json b/features.json index 9fbcbfb..b3d5b4a 100644 --- a/features.json +++ b/features.json @@ -324,7 +324,7 @@ "what": "Show only the part of a line that matched", "how": { "ack": "-o", - "ag,freebsd,gnu,osx,rg": "-o --only-matching" + "ag,freebsd,git,gnu,osx,rg": "-o --only-matching" } }, {