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

Re: SP in committer line in fast-import stream

From
SASAKI Suguru <sss.sonik@gmail.com>
Date
Jul 18, 2011, 16:18 UTC
Message-ID
<CAE3X6mxbMBwd5O+md0J3M6DUu38Q1uzDHNhAU7iGbqYVm2TyRw@mail.gmail.com>
In-Reply-To
<loom.20110718T172927-173@post.gmane.org>
Hi,
2011-07-19 Dmitry Ivankov <divanorama@gmail.com>:
Show 15 quoted lines
> The problem is with git-fast-import that it doesn't verify the format strictly
> here.
> For example following (no LT) will pass:
> <name> SP <email> GT
> The second problem is that it generates "bad" committer, in fact name-email is
> used as-is, so at least it should convert absent name to a empty name. Or maybe
> just fix the format to make string obligatory.
> There even is a third minor problem, fsck will report confusing "missing space"
> for the no-LT example.
>
> Third one is a clear.
> Your one is the second one, while internally it pulls the first one too.
>
> The shortest fix is to read documentation as
> 'committer' SP <name> SP LT <email> GT SP <when> LF

Thanks. I understand what happens. For now, I'll write some wrapper around git-fast-import as a workaound for this.

But, if git-fast-import successfully import and git-fsck will confuse, aren't some fixes necessary? It might be too done if git-fast-import will check as if git-fsck does, but I think some simple checks will help us.

Any comments?
Regards,
-- 
SASAKI Suguru
  mailto:sss.sonik@gmail.com
Previous: Dmitry IvankovNext: Dmitry Ivankov
Message 3 of 5 in “SP in committer line in fast-import stream”
  1. SASAKI SuguruJul 18, 2011
  2. Dmitry IvankovJul 18, 2011
  3. SASAKI SuguruJul 18, 2011
  4. Dmitry IvankovJul 18, 2011
  5. SASAKI SuguruJul 18, 2011

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.