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

Re: [PATCH] Really make the LF after reset in fast-import optional

From
Shawn O. Pearce <spearce@spearce.org>
Date
Mar 8, 2008, 02:12 UTC
Message-ID
<20080308021210.GX8410@spearce.org>
In-Reply-To
<1204921337-5204-1-git-send-email-dato@net.com.org.es>
Adeodato Sim <dato@net.com.org.es> wrote:
Show 12 quoted lines
> cmd_from() ends with a call to read_next_command(), which is needed
> when using cmd_from() from commands where from is not the last element.
> 
> With reset, however, "from" is the last command, after which the flow
> returns to the main loop, which calls read_next_command() again.
> 
> Because of this, always set unread_command_buf in cmd_reset_branch(),
> even if cmd_from() was successful.
> 
> Add a test case for this in t9300-fast-import.sh.
> 
> Signed-off-by: Adeodato Simó <dato@net.com.org.es>

Heh, this is awesome. I got busy for a day and someone fixed my bug for me. Thanks. :-)

Acked-by: Shawn O. Pearce <spearce@spearce.org>
>  fast-import.c          |    3 ++-
>  t/t9300-fast-import.sh |    2 ++
>  2 files changed, 4 insertions(+), 1 deletions(-)
-- 
Shawn.
Previous: Adeodato Simó
Message 3 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.