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

[PATCH 5/6] rerere: remove i18n legos in result message

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Jun 7, 2012, 12:05 UTC
Message-ID
<1339070715-31417-5-git-send-email-pclouds@gmail.com>
In-Reply-To
<1339070715-31417-1-git-send-email-pclouds@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 rerere.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/rerere.c b/rerere.c
index dcb525a..da18fc3 100644
--- a/rerere.c
+++ b/rerere.c
@@ -544,13 +544,13 @@ static int do_plain_rerere(struct string_list *rr, int fd)
 
 		if (has_rerere_resolution(name)) {
 			if (!merge(name, path)) {
-				if (rerere_autoupdate)
+				const char *msg;
+				if (rerere_autoupdate) {
 					string_list_insert(&update, path);
-				fprintf(stderr,
-					"%s '%s' using previous resolution.\n",
-					rerere_autoupdate
-					? "Staged" : "Resolved",
-					path);
+					msg = "Staged '%s' using previous resolution.\n";
+				} else
+					msg = "Resolved '%s' using previous resolution.\n";
+				fprintf(stderr, msg, path);
 				goto mark_resolved;
 			}
 		}
-- 
1.7.8
Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 5 of 7 in “Remove i18n legos in notifying new branch tracking setup”
  1. 1/6 Remove i18n legos in notifying new branch tracking setupNguyễn Thái Ngọc Duy, Jun 7, 2012
  2. 2/6 reflog: remove i18n legos in pruning messageNguyễn Thái Ngọc Duy, Jun 7, 2012
  3. 3/6 merge-recursive: remove i18n legos in conflict messagesNguyễn Thái Ngọc Duy, Jun 7, 2012
  4. 4/6 notes-merge: remove i18n legos in merge result messageNguyễn Thái Ngọc Duy, Jun 7, 2012
  5. 5/6 rerere: remove i18n legos in result messageNguyễn Thái Ngọc Duy, Jun 7, 2012
  6. 6/6 unpack-trees: remove i18n legos in unpack's porcelain error messagesNguyễn Thái Ngọc Duy, Jun 7, 2012
  7. Junio C HamanoJun 7, 2012

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.