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

Re: [PATCH 2/2] [submodule] Replace perl-code with sh

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 12, 2013, 21:08 UTC
Message-ID
<7vli6f11gk.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1370991854-1414-3-git-send-email-iveqy@iveqy.com>
Fredrik Gustafsson <iveqy@iveqy.com> writes:
Show 6 quoted lines
> This is a work built on
> http://thread.gmane.org/gmane.comp.version-control.git/198873/focus=198930
>
> Basically git-submodule.sh needs to use something else than sh to handle
> newline in filenames (and therefore needs to use a language that accepts
> \0 in strings).

Have you considered "git -c core.quotepath=false ls-files"? You won't be able to handle paths with LF or dq '"' in them, but that feels much less worse than doing

	sed -e 's/\x00/\n/'
Previous: Fredrik Gustafsson
Message 9 of 9 in “module_list enhancements”
  1. 0/2 module_list enhancementsFredrik Gustafsson, Jun 11, 2013
  2. 1/2 [submodule] handle multibyte characters in nameFredrik Gustafsson, Jun 11, 2013
  3. Junio C HamanoJun 12, 2013
  4. Jens LehmannJun 12, 2013
  5. Junio C HamanoJun 12, 2013
  6. Fredrik GustafssonJun 12, 2013
  7. Phil HordJun 13, 2013
  8. 2/2 [submodule] Replace perl-code with shFredrik Gustafsson, Jun 11, 2013
  9. Junio C HamanoJun 12, 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.