Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git grep -o shows only the part of a line that matched #133

Open
LucasLarson opened this issue Mar 13, 2023 · 1 comment · May be fixed by #134
Open

git grep -o shows only the part of a line that matched #133

LucasLarson opened this issue Mar 13, 2023 · 1 comment · May be fixed by #134

Comments

@LucasLarson
Copy link

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, but beyondgrep.com doesn’t say so.

LucasLarson added a commit to LucasLarson/beyondgrep.com that referenced this issue Mar 13, 2023
`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 beyondgrep#133

1. https://git.kernel.org/pub/scm/git/git.git/commit/?id=9d8db06eb4a5d5577db559a0059a377914c1ce5a

Signed-off-by: Lucas Larson <[email protected]>
@LucasLarson LucasLarson linked a pull request Mar 13, 2023 that will close this issue
@petdance
Copy link
Collaborator

Thanks for this. There's lot a lot that is out of date on that chart, but this is a good step in the right direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants