You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Having grep support the -o option like GNU grep et al #232
We have most of the code for this already in the form of our color hi-lighting, it would mostly just be a matter of "just print out the stuff you'd have colored", with the small exception that if you have more than one match on a line they should be printed out on their own lines.
Activity
bbolli commentedon May 29, 2019
I think this was already implemented in 9d8db06 ("grep.c: teach 'git grep --only-matching'", 2018-07-09).
dscho commentedon May 30, 2019
@bbolli indeed! Thank you!