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

[fast-import] LF after reset not optional

From
Adeodato Simó <dato@net.com.org.es>
Date
Mar 5, 2008, 21:07 UTC
Message-ID
<20080305210715.GA10686@chistera.yi.org>
Hello.

Maybe I'm doing something wrong, but I can't get the "reset" command to work as advertised in git-fast-import(1), without an extra LF at the end.

This input:

-8<- commit refs/heads/master mark :1 committer Joe R. Developer <joe@random.com> 1204726629 +0100 data <<EOF First commit. EOF M 644 inline foo.txt data <<EOF Hello, world! EOF reset refs/tags/tag1 from :1 reset refs/tags/tag2 from :1 -8<-

fails with:
  fatal: Unsupported command: from :1

Adding an extra LF before the second reset fixes the issue. I tested this issue seems to present in the "next" branch in addition to 1.5.4.3.

Cheers,
-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
- I couldn't find anything in there for days. I kept reaching in for
  strawberries and coming up with liver -- that's not pleasant.
- I promise not to touch the fridge again.
                -- Sookie and Lorelai
Next: Adeodato Simó
Message 1 of 3 in “[fast-import] LF after reset not optional”
  1. Adeodato SimóMar 5, 2008
  2. Really make the LF after reset in fast-import optionalAdeodato Simó, Mar 7, 2008
  3. Shawn O. PearceMar 8, 2008

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.