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

Re: [PATCH] added: Multi line support for ignore-paths configuration

From
EWEric Wong <e@80x24.org>
Date
Apr 13, 2020, 18:18 UTC
Message-ID
<20200413181805.GA1872@dcvr>
In-Reply-To
<8fbfbf1c-ea14-6739-7881-cfa3d9642de9@lpl-mind.de>
Lukas Pupka-Lipinski <lukas.pupkalipinski@lpl-mind.de> wrote:

Sorry for the long delay, had other stuff to deal with. (and off-list replies with HTML doesn't take high priority)

Show 21 quoted lines
> Am 30.03.2020 um 01:24 schrieb Eric Wong:
> > > Am 25.03.2020 um 21:38 schrieb Eric Wong:
> > > > > 2.25.1.windows.1
> > > > I'm not sure how git-config or chomp() behaves on Windows systems
> > > > with CRLF line endings, though.
> > > > 
> > > > A possibility would be replacing chomp(@v) with:
> > > > 
> > > > 	s/\r?\n\z//s for @v;
> > > Yes that has to be done. Its implemented in
> > > 
> > > +    $v  =~ s/[\x0A\x0D]//g if (defined $v);
> > Does that mean you'll send a v2 of the patch which uses
> > 
> > 	s/\r?\n\z//s for @v;
> > 
> > ?
> 
> Its already in the patch. Line
> 
> +    $v  =~ s/[\x0A\x0D]//g if (defined $v);

Please reread my original message about how `$v' as a scalar is incorrect (and thus your s///g):

https://lore.kernel.org/git/20200325203823.GA21913@dcvr/

The correct operations are on `@v' as an array, `$v' as a scalar. Thanks.

Previous: Eric Wong
Message 5 of 5 in “added: Multi line support for ignore-paths configuration”
  1. added: Multi line support for ignore-paths configurationLukas Pupka-Lipinski, Mar 25, 2020
  2. Eric WongMar 25, 2020
  3. Junio C HamanoMar 25, 2020
  4. Eric WongMar 29, 2020
  5. Eric WongApr 13, 2020

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.