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

Re: [[PATCH v3] 1/2] [submodule] handle multibyte characters in name

From
Fredrik Gustafsson <iveqy@iveqy.com>
Date
Jun 14, 2013, 18:27 UTC
Message-ID
<20130614182741.GA5812@paksenarrion.iveqy.com>
In-Reply-To
<7va9msppw7.fsf@alter.siamese.dyndns.org>
On Fri, Jun 14, 2013 at 10:23:52AM -0700, Junio C Hamano wrote:
Show 10 quoted lines
> Fredrik Gustafsson <iveqy@iveqy.com> writes:
> 
> > ... The
> > correct approach to solve the problem for all pathnames may be to use
> > "ls-files -z" and tell the Perl script that reads its output to read NUL
> > separated records by using $/ = "\0".
> 
> I've tentatively queued the attached without 2/2; the scriptlet is
> small enough not to matter in an eventual rewrite, so it shouldn't
> make a difference either way.

Sorry, I didn't knew enough perl to understand that that was a suggestion rather than a hint to a future developer.

Now when I see how you meant it's looks like the best solution to me. To me it looks like we now should be able to handle the multiline case here. However, git submodule add doesn't handle newline yet, so it really doesn't matter for now.

Thanks for the help!
-- 
Med vänliga hälsningar
Fredrik Gustafsson

tel: 0733-608274
e-post: iveqy@iveqy.com
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 6 in “0/2] module_list enhancements”
  1. 0/2] module_list enhancementsFredrik Gustafsson, Jun 14, 2013
  2. 1/2] [submodule] handle multibyte characters in nameFredrik Gustafsson, Jun 14, 2013
  3. Junio C HamanoJun 14, 2013
  4. Fredrik GustafssonJun 14, 2013
  5. Junio C HamanoJun 14, 2013
  6. 2/2] [submodule] Replace perl-code with shFredrik Gustafsson, Jun 14, 2013

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.