Re: git grep bug replacing - with :
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jun 14, 2024, 19:36 UTC
- Message-ID
- <CAPig+cRGnAcfpr4JWp9WWC0b4yvjKx-_0up_S2iaXCBxgcSLjQ@mail.gmail.com>
- In-Reply-To
- <CALyzih__9sZD31SVMECcxk55+MAMjkfgpLzecoHo0xUoauerqA@mail.gmail.com>
On Fri, Jun 14, 2024 at 3:22 PM Rickard Andersson <rickard.a1992@gmail.com> wrote:
Show 14 quoted lines
> What did you do before the bug happened? (Steps to reproduce your issue) > Added 2 files to my repo with words in them > text-file.txt > text-file-file.txt > ``` > git grep -l ExtremelyInterestingWord > ``` > > What happened instead? (Actual behavior) > I get > ``` > text:file.txt > text:file-file.txt > ```
I am unable to reproduce this problem:
$ git version
git version 2.45.2
$ git init foo
Initialized empty Git repository in .../foo/.git/
$ cd foo
$ echo ExtremelyInterestingWord >text-file.txt
$ echo ExtremelyInterestingWord >text-file-file.txt
$ git add text-file.txt text-file-file.txt
$ git commit -m msg
[main (root-commit) 765269f] msg
2 files changed, 2 insertions(+)
create mode 100644 text-file-file.txt
create mode 100644 text-file.txt
$ git grep -l ExtremelyInterestingWord
text-file-file.txt
text-file.txt