зеркало из https://github.com/microsoft/git.git
Merge branch 'nd/i18n-misc'
Restructure the way message strings are created, in preparation for marking them for i18n. * nd/i18n-misc: rerere: remove i18n legos in result message notes-merge: remove i18n legos in merge result message reflog: remove i18n legos in pruning message
This commit is contained in:
Коммит
efc478d42e
|
@ -330,8 +330,10 @@ static int expire_reflog_ent(unsigned char *osha1, unsigned char *nsha1,
|
|||
printf("keep %s", message);
|
||||
return 0;
|
||||
prune:
|
||||
if (!cb->newlog || cb->cmd->verbose)
|
||||
printf("%sprune %s", cb->newlog ? "" : "would ", message);
|
||||
if (!cb->newlog)
|
||||
printf("would prune %s", message);
|
||||
else if (cb->cmd->verbose)
|
||||
printf("prune %s", message);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -524,8 +524,10 @@ static int merge_from_diffs(struct notes_merge_options *o,
|
|||
free(changes);
|
||||
|
||||
if (o->verbosity >= 4)
|
||||
printf("Merge result: %i unmerged notes and a %s notes tree\n",
|
||||
conflicts, t->dirty ? "dirty" : "clean");
|
||||
printf(t->dirty ?
|
||||
"Merge result: %i unmerged notes and a dirty notes tree\n" :
|
||||
"Merge result: %i unmerged notes and a clean notes tree\n",
|
||||
conflicts);
|
||||
|
||||
return conflicts ? -1 : 1;
|
||||
}
|
||||
|
|
12
rerere.c
12
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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче