Skip to content

Support Git < 2.19 by dropping --column - #23

Merged
brandonchinn178 merged 1 commit into
mainfrom
git-grep
Apr 21, 2026
Merged

Support Git < 2.19 by dropping --column#23
brandonchinn178 merged 1 commit into
mainfrom
git-grep

Conversation

@brandonchinn178

@brandonchinn178 brandonchinn178 commented Apr 19, 2026

Copy link
Copy Markdown
Owner

--column was only an optimization to immediately drop everything not matching. But elemIndex is fast enough that even the worst case of having false positives shouldn't be a big deal. And since --column was the only thing requiring Git > 2.19, even more reason to drop it.

brandonchinn178 added a commit that referenced this pull request Apr 21, 2026
* Break out parseLine

* Break out streamProcLines

* Add comment for parseLabels export

* Document minimum git version

* Pass delimiters as argument
@brandonchinn178 brandonchinn178 changed the title Add --only-matching + fully support Git < 2.19 Support Git < 2.19 by dropping --column Apr 21, 2026
@brandonchinn178
brandonchinn178 merged commit ae46885 into main Apr 21, 2026
3 checks passed
@brandonchinn178
brandonchinn178 deleted the git-grep branch April 21, 2026 05:42
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 this pull request may close these issues.

1 participant