rerere: remove i18n legos in result message
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 7 Jun 2012 12:05:14 +0000 (19:05 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Jun 2012 18:58:10 +0000 (11:58 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
rerere.c

index dcb525a4d03faeba53d108d2e175a6d04f99d160..da18fc37dfc6cd9071b0ef5fc057048724ff3025 100644 (file)
--- 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;
                        }
                }