git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] grep: demonstrate bug with textconv attributes and submodules

From
Matheus Tavares <matheus.bernardino@usp.br>
Date
Sep 28, 2021, 17:18 UTC
Message-ID
<CAHd-oW4fNNp+A_fFeqbTeOwDV+ss0-0x=rt0HOi2m1txrh+1ZQ@mail.gmail.com>
In-Reply-To
<CAPig+cS1xrXHBbxwcwL_WKdnU9_MSTZffMtn3FxdUGuQX85XbA@mail.gmail.com>
On Tue, Sep 28, 2021 at 2:16 PM Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 23 quoted lines
>
> On Tue, Sep 28, 2021 at 1:08 PM Matheus Tavares
> <matheus.bernardino@usp.br> wrote:
> > In some circumstances, "git grep --textconv --recurse-submodules"
> > ignores the textconv attributes from the submodules and erroneuosly
> > apply the attributes defined in the superproject on the submodules'
> > files. The textconv cache is also saved on the superproject, even for
> > submodule objects.
>
> s/erroneuosly/erroneously/
>
> Also, perhaps: s/apply/applies/
>
> > Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
> > diff --git a/t/t7814-grep-recurse-submodules.sh b/t/t7814-grep-recurse-submodules.sh
> > @@ -441,4 +441,107 @@ test_expect_success 'grep --recurse-submodules with --cached ignores worktree mo
> > +test_expect_failure 'grep --textconv corectly reads submodule .gitattributes' '
>
> Here and in remaining newly added tests: s/corectly/correctly/
>
> > +test_expect_failure 'grep saves textconv cache in the appropriated repository' '
>
> s/appropriated/appropriate/

Oops, I should have been more careful with the writing. Thanks for catching those!

Previous: Eric SunshineNext: Matheus Tavares
Message 3 of 5 in “grep: demonstrate bug with textconv attributes and submodules”
  1. grep: demonstrate bug with textconv attributes and submodulesMatheus Tavares, Sep 28, 2021
  2. Eric SunshineSep 28, 2021
  3. Matheus TavaresSep 28, 2021
  4. Matheus TavaresSep 28, 2021
  5. grep: demonstrate bug with textconv attributes and submodulesMatheus Tavares, Sep 29, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.