@@ -50,7 +50,7 @@ static const char *fake_ancestor;
50
50
static int line_termination = '\n' ;
51
51
static unsigned int p_context = UINT_MAX ;
52
52
static const char * const apply_usage [] = {
53
- "git apply [options] [<patch>...]" ,
53
+ N_ ( "git apply [options] [<patch>...]" ) ,
54
54
NULL
55
55
};
56
56
@@ -3959,66 +3959,66 @@ int cmd_apply(int argc, const char **argv, const char *prefix_)
3959
3959
const char * whitespace_option = NULL ;
3960
3960
3961
3961
struct option builtin_apply_options [] = {
3962
- { OPTION_CALLBACK , 0 , "exclude" , NULL , "path" ,
3963
- "don't apply changes matching the given path" ,
3962
+ { OPTION_CALLBACK , 0 , "exclude" , NULL , N_ ( "path" ) ,
3963
+ N_ ( "don't apply changes matching the given path" ) ,
3964
3964
0 , option_parse_exclude },
3965
- { OPTION_CALLBACK , 0 , "include" , NULL , "path" ,
3966
- "apply changes matching the given path" ,
3965
+ { OPTION_CALLBACK , 0 , "include" , NULL , N_ ( "path" ) ,
3966
+ N_ ( "apply changes matching the given path" ) ,
3967
3967
0 , option_parse_include },
3968
- { OPTION_CALLBACK , 'p' , NULL , NULL , "num" ,
3969
- "remove <num> leading slashes from traditional diff paths" ,
3968
+ { OPTION_CALLBACK , 'p' , NULL , NULL , N_ ( "num" ) ,
3969
+ N_ ( "remove <num> leading slashes from traditional diff paths" ) ,
3970
3970
0 , option_parse_p },
3971
3971
OPT_BOOLEAN (0 , "no-add" , & no_add ,
3972
- "ignore additions made by the patch" ),
3972
+ N_ ( "ignore additions made by the patch" ) ),
3973
3973
OPT_BOOLEAN (0 , "stat" , & diffstat ,
3974
- "instead of applying the patch, output diffstat for the input" ),
3974
+ N_ ( "instead of applying the patch, output diffstat for the input" ) ),
3975
3975
OPT_NOOP_NOARG (0 , "allow-binary-replacement" ),
3976
3976
OPT_NOOP_NOARG (0 , "binary" ),
3977
3977
OPT_BOOLEAN (0 , "numstat" , & numstat ,
3978
- "shows number of added and deleted lines in decimal notation" ),
3978
+ N_ ( "shows number of added and deleted lines in decimal notation" ) ),
3979
3979
OPT_BOOLEAN (0 , "summary" , & summary ,
3980
- "instead of applying the patch, output a summary for the input" ),
3980
+ N_ ( "instead of applying the patch, output a summary for the input" ) ),
3981
3981
OPT_BOOLEAN (0 , "check" , & check ,
3982
- "instead of applying the patch, see if the patch is applicable" ),
3982
+ N_ ( "instead of applying the patch, see if the patch is applicable" ) ),
3983
3983
OPT_BOOLEAN (0 , "index" , & check_index ,
3984
- "make sure the patch is applicable to the current index" ),
3984
+ N_ ( "make sure the patch is applicable to the current index" ) ),
3985
3985
OPT_BOOLEAN (0 , "cached" , & cached ,
3986
- "apply a patch without touching the working tree" ),
3986
+ N_ ( "apply a patch without touching the working tree" ) ),
3987
3987
OPT_BOOLEAN (0 , "apply" , & force_apply ,
3988
- "also apply the patch (use with --stat/--summary/--check)" ),
3988
+ N_ ( "also apply the patch (use with --stat/--summary/--check)" ) ),
3989
3989
OPT_FILENAME (0 , "build-fake-ancestor" , & fake_ancestor ,
3990
- "build a temporary index based on embedded index information" ),
3990
+ N_ ( "build a temporary index based on embedded index information" ) ),
3991
3991
{ OPTION_CALLBACK , 'z' , NULL , NULL , NULL ,
3992
- "paths are separated with NUL character" ,
3992
+ N_ ( "paths are separated with NUL character" ) ,
3993
3993
PARSE_OPT_NOARG , option_parse_z },
3994
3994
OPT_INTEGER ('C' , NULL , & p_context ,
3995
- "ensure at least <n> lines of context match" ),
3996
- { OPTION_CALLBACK , 0 , "whitespace" , & whitespace_option , "action" ,
3997
- "detect new or modified lines that have whitespace errors" ,
3995
+ N_ ( "ensure at least <n> lines of context match" ) ),
3996
+ { OPTION_CALLBACK , 0 , "whitespace" , & whitespace_option , N_ ( "action" ) ,
3997
+ N_ ( "detect new or modified lines that have whitespace errors" ) ,
3998
3998
0 , option_parse_whitespace },
3999
3999
{ OPTION_CALLBACK , 0 , "ignore-space-change" , NULL , NULL ,
4000
- "ignore changes in whitespace when finding context" ,
4000
+ N_ ( "ignore changes in whitespace when finding context" ) ,
4001
4001
PARSE_OPT_NOARG , option_parse_space_change },
4002
4002
{ OPTION_CALLBACK , 0 , "ignore-whitespace" , NULL , NULL ,
4003
- "ignore changes in whitespace when finding context" ,
4003
+ N_ ( "ignore changes in whitespace when finding context" ) ,
4004
4004
PARSE_OPT_NOARG , option_parse_space_change },
4005
4005
OPT_BOOLEAN ('R' , "reverse" , & apply_in_reverse ,
4006
- "apply the patch in reverse" ),
4006
+ N_ ( "apply the patch in reverse" ) ),
4007
4007
OPT_BOOLEAN (0 , "unidiff-zero" , & unidiff_zero ,
4008
- "don't expect at least one line of context" ),
4008
+ N_ ( "don't expect at least one line of context" ) ),
4009
4009
OPT_BOOLEAN (0 , "reject" , & apply_with_reject ,
4010
- "leave the rejected hunks in corresponding *.rej files" ),
4010
+ N_ ( "leave the rejected hunks in corresponding *.rej files" ) ),
4011
4011
OPT_BOOLEAN (0 , "allow-overlap" , & allow_overlap ,
4012
- "allow overlapping hunks" ),
4013
- OPT__VERBOSE (& apply_verbosely , "be verbose" ),
4012
+ N_ ( "allow overlapping hunks" ) ),
4013
+ OPT__VERBOSE (& apply_verbosely , N_ ( "be verbose" ) ),
4014
4014
OPT_BIT (0 , "inaccurate-eof" , & options ,
4015
- "tolerate incorrectly detected missing new-line at the end of file" ,
4015
+ N_ ( "tolerate incorrectly detected missing new-line at the end of file" ) ,
4016
4016
INACCURATE_EOF ),
4017
4017
OPT_BIT (0 , "recount" , & options ,
4018
- "do not trust the line counts in the hunk headers" ,
4018
+ N_ ( "do not trust the line counts in the hunk headers" ) ,
4019
4019
RECOUNT ),
4020
- { OPTION_CALLBACK , 0 , "directory" , NULL , "root" ,
4021
- "prepend <root> to all filenames" ,
4020
+ { OPTION_CALLBACK , 0 , "directory" , NULL , N_ ( "root" ) ,
4021
+ N_ ( "prepend <root> to all filenames" ) ,
4022
4022
0 , option_parse_directory },
4023
4023
OPT_END ()
4024
4024
};
0 commit comments