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
Hi, thanks for the report. Perhaps delta can be modified to behave differently when --name-only is in effect; either by inferring that from the output, or by inspecting the calling process command line (we are already forced to do this in some other situations, so there are utilities to do it performantly).
In general, traditional grep output (i.e. not the sort produced by --name-only) is subject to inevitable parse ambiguities involving the separator characters used. So, I think that's what's going on here, but like I say, if we actually know we're working with --name-only then we shouldn't be getting it wrong! Also not claiming that delta's regexps are optimal -- there are lots of tests and we'd welcome improvements to them -- I'm just claiming that there's not a perfect solution.
I know that git grep does things that ripgrep cannot but, if it is an option, then do consider rg --json since then there are no parse ambiguities.
So far it's only the
-
character that I've noticed.Raw output:
Delta output:
Delta output without --name-only
The text was updated successfully, but these errors were encountered: