зеркало из https://github.com/microsoft/git.git
i18n: apply: mark parseopt strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
54e6dc7daf
Коммит
de37393344
|
@ -50,7 +50,7 @@ static const char *fake_ancestor;
|
||||||
static int line_termination = '\n';
|
static int line_termination = '\n';
|
||||||
static unsigned int p_context = UINT_MAX;
|
static unsigned int p_context = UINT_MAX;
|
||||||
static const char * const apply_usage[] = {
|
static const char * const apply_usage[] = {
|
||||||
"git apply [options] [<patch>...]",
|
N_("git apply [options] [<patch>...]"),
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3952,66 +3952,66 @@ int cmd_apply(int argc, const char **argv, const char *prefix_)
|
||||||
const char *whitespace_option = NULL;
|
const char *whitespace_option = NULL;
|
||||||
|
|
||||||
struct option builtin_apply_options[] = {
|
struct option builtin_apply_options[] = {
|
||||||
{ OPTION_CALLBACK, 0, "exclude", NULL, "path",
|
{ OPTION_CALLBACK, 0, "exclude", NULL, N_("path"),
|
||||||
"don't apply changes matching the given path",
|
N_("don't apply changes matching the given path"),
|
||||||
0, option_parse_exclude },
|
0, option_parse_exclude },
|
||||||
{ OPTION_CALLBACK, 0, "include", NULL, "path",
|
{ OPTION_CALLBACK, 0, "include", NULL, N_("path"),
|
||||||
"apply changes matching the given path",
|
N_("apply changes matching the given path"),
|
||||||
0, option_parse_include },
|
0, option_parse_include },
|
||||||
{ OPTION_CALLBACK, 'p', NULL, NULL, "num",
|
{ OPTION_CALLBACK, 'p', NULL, NULL, N_("num"),
|
||||||
"remove <num> leading slashes from traditional diff paths",
|
N_("remove <num> leading slashes from traditional diff paths"),
|
||||||
0, option_parse_p },
|
0, option_parse_p },
|
||||||
OPT_BOOLEAN(0, "no-add", &no_add,
|
OPT_BOOLEAN(0, "no-add", &no_add,
|
||||||
"ignore additions made by the patch"),
|
N_("ignore additions made by the patch")),
|
||||||
OPT_BOOLEAN(0, "stat", &diffstat,
|
OPT_BOOLEAN(0, "stat", &diffstat,
|
||||||
"instead of applying the patch, output diffstat for the input"),
|
N_("instead of applying the patch, output diffstat for the input")),
|
||||||
OPT_NOOP_NOARG(0, "allow-binary-replacement"),
|
OPT_NOOP_NOARG(0, "allow-binary-replacement"),
|
||||||
OPT_NOOP_NOARG(0, "binary"),
|
OPT_NOOP_NOARG(0, "binary"),
|
||||||
OPT_BOOLEAN(0, "numstat", &numstat,
|
OPT_BOOLEAN(0, "numstat", &numstat,
|
||||||
"shows number of added and deleted lines in decimal notation"),
|
N_("shows number of added and deleted lines in decimal notation")),
|
||||||
OPT_BOOLEAN(0, "summary", &summary,
|
OPT_BOOLEAN(0, "summary", &summary,
|
||||||
"instead of applying the patch, output a summary for the input"),
|
N_("instead of applying the patch, output a summary for the input")),
|
||||||
OPT_BOOLEAN(0, "check", &check,
|
OPT_BOOLEAN(0, "check", &check,
|
||||||
"instead of applying the patch, see if the patch is applicable"),
|
N_("instead of applying the patch, see if the patch is applicable")),
|
||||||
OPT_BOOLEAN(0, "index", &check_index,
|
OPT_BOOLEAN(0, "index", &check_index,
|
||||||
"make sure the patch is applicable to the current index"),
|
N_("make sure the patch is applicable to the current index")),
|
||||||
OPT_BOOLEAN(0, "cached", &cached,
|
OPT_BOOLEAN(0, "cached", &cached,
|
||||||
"apply a patch without touching the working tree"),
|
N_("apply a patch without touching the working tree")),
|
||||||
OPT_BOOLEAN(0, "apply", &force_apply,
|
OPT_BOOLEAN(0, "apply", &force_apply,
|
||||||
"also apply the patch (use with --stat/--summary/--check)"),
|
N_("also apply the patch (use with --stat/--summary/--check)")),
|
||||||
OPT_FILENAME(0, "build-fake-ancestor", &fake_ancestor,
|
OPT_FILENAME(0, "build-fake-ancestor", &fake_ancestor,
|
||||||
"build a temporary index based on embedded index information"),
|
N_("build a temporary index based on embedded index information")),
|
||||||
{ OPTION_CALLBACK, 'z', NULL, NULL, NULL,
|
{ OPTION_CALLBACK, 'z', NULL, NULL, NULL,
|
||||||
"paths are separated with NUL character",
|
N_("paths are separated with NUL character"),
|
||||||
PARSE_OPT_NOARG, option_parse_z },
|
PARSE_OPT_NOARG, option_parse_z },
|
||||||
OPT_INTEGER('C', NULL, &p_context,
|
OPT_INTEGER('C', NULL, &p_context,
|
||||||
"ensure at least <n> lines of context match"),
|
N_("ensure at least <n> lines of context match")),
|
||||||
{ OPTION_CALLBACK, 0, "whitespace", &whitespace_option, "action",
|
{ OPTION_CALLBACK, 0, "whitespace", &whitespace_option, N_("action"),
|
||||||
"detect new or modified lines that have whitespace errors",
|
N_("detect new or modified lines that have whitespace errors"),
|
||||||
0, option_parse_whitespace },
|
0, option_parse_whitespace },
|
||||||
{ OPTION_CALLBACK, 0, "ignore-space-change", NULL, NULL,
|
{ OPTION_CALLBACK, 0, "ignore-space-change", NULL, NULL,
|
||||||
"ignore changes in whitespace when finding context",
|
N_("ignore changes in whitespace when finding context"),
|
||||||
PARSE_OPT_NOARG, option_parse_space_change },
|
PARSE_OPT_NOARG, option_parse_space_change },
|
||||||
{ OPTION_CALLBACK, 0, "ignore-whitespace", NULL, NULL,
|
{ OPTION_CALLBACK, 0, "ignore-whitespace", NULL, NULL,
|
||||||
"ignore changes in whitespace when finding context",
|
N_("ignore changes in whitespace when finding context"),
|
||||||
PARSE_OPT_NOARG, option_parse_space_change },
|
PARSE_OPT_NOARG, option_parse_space_change },
|
||||||
OPT_BOOLEAN('R', "reverse", &apply_in_reverse,
|
OPT_BOOLEAN('R', "reverse", &apply_in_reverse,
|
||||||
"apply the patch in reverse"),
|
N_("apply the patch in reverse")),
|
||||||
OPT_BOOLEAN(0, "unidiff-zero", &unidiff_zero,
|
OPT_BOOLEAN(0, "unidiff-zero", &unidiff_zero,
|
||||||
"don't expect at least one line of context"),
|
N_("don't expect at least one line of context")),
|
||||||
OPT_BOOLEAN(0, "reject", &apply_with_reject,
|
OPT_BOOLEAN(0, "reject", &apply_with_reject,
|
||||||
"leave the rejected hunks in corresponding *.rej files"),
|
N_("leave the rejected hunks in corresponding *.rej files")),
|
||||||
OPT_BOOLEAN(0, "allow-overlap", &allow_overlap,
|
OPT_BOOLEAN(0, "allow-overlap", &allow_overlap,
|
||||||
"allow overlapping hunks"),
|
N_("allow overlapping hunks")),
|
||||||
OPT__VERBOSE(&apply_verbosely, "be verbose"),
|
OPT__VERBOSE(&apply_verbosely, N_("be verbose")),
|
||||||
OPT_BIT(0, "inaccurate-eof", &options,
|
OPT_BIT(0, "inaccurate-eof", &options,
|
||||||
"tolerate incorrectly detected missing new-line at the end of file",
|
N_("tolerate incorrectly detected missing new-line at the end of file"),
|
||||||
INACCURATE_EOF),
|
INACCURATE_EOF),
|
||||||
OPT_BIT(0, "recount", &options,
|
OPT_BIT(0, "recount", &options,
|
||||||
"do not trust the line counts in the hunk headers",
|
N_("do not trust the line counts in the hunk headers"),
|
||||||
RECOUNT),
|
RECOUNT),
|
||||||
{ OPTION_CALLBACK, 0, "directory", NULL, "root",
|
{ OPTION_CALLBACK, 0, "directory", NULL, N_("root"),
|
||||||
"prepend <root> to all filenames",
|
N_("prepend <root> to all filenames"),
|
||||||
0, option_parse_directory },
|
0, option_parse_directory },
|
||||||
OPT_END()
|
OPT_END()
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче