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

[PATCH] Mention that git-rm can be an appropriate resolution as well as git-add.

From
David Symonds <dsymonds@gmail.com>
Date
Nov 23, 2007, 13:38 UTC
Message-ID
<11958251302874-git-send-email-dsymonds@gmail.com>

Especially when using git-cherry-pick, removing files that are unmerged can be a logical action. This patch merely changes the informative text to be less confusing.

Signed-off-by: David Symonds <dsymonds@gmail.com>
---
 builtin-revert.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-revert.c b/builtin-revert.c
index 365b330..d9ed40d 100644
--- a/builtin-revert.c
+++ b/builtin-revert.c
@@ -366,7 +366,7 @@ static int revert_or_cherry_pick(int argc, const char **argv)
 			die ("Error wrapping up %s", defmsg);
 		fprintf(stderr, "Automatic %s failed.  "
 			"After resolving the conflicts,\n"
-			"mark the corrected paths with 'git add <paths>' "
+			"mark the corrected paths with 'git add <paths>' or 'git rm <paths>' "
 			"and commit the result.\n", me);
 		if (action == CHERRY_PICK) {
 			fprintf(stderr, "When commiting, use the option "
-- 
1.5.3.1
Next: Junio C Hamano
Message 1 of 2 in “Mention that git-rm can be an appropriate resolution as well as git-add.”
  1. Mention that git-rm can be an appropriate resolution as well as git-add.David Symonds, Nov 23, 2007
  2. Junio C HamanoDec 1, 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.