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

[PATCH] Correct error message in revert/cherry-pick

From
Shawn O. Pearce <spearce@spearce.org>
Date
May 10, 2007, 22:10 UTC
Message-ID
<20070510221036.GA31328@spearce.org>

We now write to MERGE_MSG, not .msg. I missed this earlier when I changed the target we write to.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 builtin-revert.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-revert.c b/builtin-revert.c
index 55d4fa1..ea2f15b 100644
--- a/builtin-revert.c
+++ b/builtin-revert.c
@@ -133,7 +133,7 @@ static void add_to_msg(const char *string)
 {
 	int len = strlen(string);
 	if (write_in_full(msg_fd, string, len) < 0)
-		die ("Could not write to .msg");
+		die ("Could not write to MERGE_MSG");
 }
 
 static void add_message_to_msg(const char *message)
-- 
1.5.2.rc2.754.g40686
Message 1 of 1 in “Correct error message in revert/cherry-pick”
  1. Correct error message in revert/cherry-pickShawn O. Pearce, May 10, 2007

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.