@@ -172,9 +172,9 @@ static void show_name(const struct object *obj,
172172}
173173
174174static char const * const name_rev_usage [] = {
175- "git name-rev [options] <commit>..." ,
176- "git name-rev [options] --all" ,
177- "git name-rev [options] --stdin" ,
175+ N_ ( "git name-rev [options] <commit>..." ) ,
176+ N_ ( "git name-rev [options] --all" ) ,
177+ N_ ( "git name-rev [options] --stdin" ) ,
178178 NULL
179179};
180180
@@ -226,16 +226,16 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix)
226226 int all = 0 , transform_stdin = 0 , allow_undefined = 1 , always = 0 ;
227227 struct name_ref_data data = { 0 , 0 , NULL };
228228 struct option opts [] = {
229- OPT_BOOLEAN (0 , "name-only" , & data .name_only , "print only names (no SHA-1)" ),
230- OPT_BOOLEAN (0 , "tags" , & data .tags_only , "only use tags to name the commits" ),
231- OPT_STRING (0 , "refs" , & data .ref_filter , "pattern" ,
232- "only use refs matching <pattern>" ),
229+ OPT_BOOLEAN (0 , "name-only" , & data .name_only , N_ ( "print only names (no SHA-1)" ) ),
230+ OPT_BOOLEAN (0 , "tags" , & data .tags_only , N_ ( "only use tags to name the commits" ) ),
231+ OPT_STRING (0 , "refs" , & data .ref_filter , N_ ( "pattern" ) ,
232+ N_ ( "only use refs matching <pattern>" ) ),
233233 OPT_GROUP ("" ),
234- OPT_BOOLEAN (0 , "all" , & all , "list all commits reachable from all refs" ),
235- OPT_BOOLEAN (0 , "stdin" , & transform_stdin , "read from stdin" ),
236- OPT_BOOLEAN (0 , "undefined" , & allow_undefined , "allow to print `undefined` names" ),
234+ OPT_BOOLEAN (0 , "all" , & all , N_ ( "list all commits reachable from all refs" ) ),
235+ OPT_BOOLEAN (0 , "stdin" , & transform_stdin , N_ ( "read from stdin" ) ),
236+ OPT_BOOLEAN (0 , "undefined" , & allow_undefined , N_ ( "allow to print `undefined` names" ) ),
237237 OPT_BOOLEAN (0 , "always" , & always ,
238- "show abbreviated commit object as fallback" ),
238+ N_ ( "show abbreviated commit object as fallback" ) ),
239239 OPT_END (),
240240 };
241241
0 commit comments