`git grep` is too picky about option parsing
- From
Jan Engelhardt <jengelh@inai.de>
- Date
- Dec 6, 2020, 22:12 UTC
- Message-ID
- <704q5rs6-63q1-sp78-9845-227oq8q42o8q@vanv.qr>
Version: 2.29.2
-e, -i, -l and -n are all valid options for grep as well as git grep, yet git-grep refuses to operate if they appear in a specific order.
Observed:
$ git grep -e abc -lin error: did you mean `--lin` (with two dashes)?
Expected:
$ git grep -e abc -lin somefile