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

Re: git-fast-import doc problem and git-fast-export does not quote filenames correctly

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Sep 4, 2010, 16:48 UTC
Message-ID
<AANLkTimsVQ=mg2EUhUEO5ZWQMZoA72B=p2+1ZA=1qBtn@mail.gmail.com>
In-Reply-To
<4C81E461.7010704@alum.mit.edu>
On Sat, Sep 4, 2010 at 01:17, Michael Haggerty <mhagger@alum.mit.edu> wrote:
> The first problem is that the doc seems to allow NUL bytes (which I
> suspect are not really allowed)

Fast import keeps reading until it finds a '\n' and stores data in a strbuf, so I don't see why 'NUL' would not be allowed.

> or the backslash '\' character (which,
> if allowed, would logically have to be escaped, too).

Backslashes are allowed, and it seems they need to be escaped as usual. Perhaps Shawn can confirm that this should just be updated in the docs.

> The second problem is that "git fast-export" does not do even the
> specified quoting:
That's a bug with fast-export then :)
-- 
Cheers,

Sverre Rabbelier
Previous: Michael HaggertyNext: Michael Haggerty
Message 2 of 3 in “git-fast-import doc problem and git-fast-export does not quote filenames correctly”
  1. Michael HaggertySep 4, 2010
  2. Sverre RabbelierSep 4, 2010
  3. Michael HaggertySep 4, 2010

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.