|
11 | 11 | #include "submodule.h" |
12 | 12 |
|
13 | 13 | static const char * const push_usage[] = { |
14 | | - "git push [<options>] [<repository> [<refspec>...]]", |
| 14 | + N_("git push [<options>] [<repository> [<refspec>...]]"), |
15 | 15 | NULL, |
16 | 16 | }; |
17 | 17 |
|
@@ -354,25 +354,25 @@ int cmd_push(int argc, const char **argv, const char *prefix) |
354 | 354 | const char *repo = NULL; /* default repository */ |
355 | 355 | struct option options[] = { |
356 | 356 | OPT__VERBOSITY(&verbosity), |
357 | | - OPT_STRING( 0 , "repo", &repo, "repository", "repository"), |
358 | | - OPT_BIT( 0 , "all", &flags, "push all refs", TRANSPORT_PUSH_ALL), |
359 | | - OPT_BIT( 0 , "mirror", &flags, "mirror all refs", |
| 357 | + OPT_STRING( 0 , "repo", &repo, N_("repository"), N_("repository")), |
| 358 | + OPT_BIT( 0 , "all", &flags, N_("push all refs"), TRANSPORT_PUSH_ALL), |
| 359 | + OPT_BIT( 0 , "mirror", &flags, N_("mirror all refs"), |
360 | 360 | (TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE)), |
361 | | - OPT_BOOLEAN( 0, "delete", &deleterefs, "delete refs"), |
362 | | - OPT_BOOLEAN( 0 , "tags", &tags, "push tags (can't be used with --all or --mirror)"), |
363 | | - OPT_BIT('n' , "dry-run", &flags, "dry run", TRANSPORT_PUSH_DRY_RUN), |
364 | | - OPT_BIT( 0, "porcelain", &flags, "machine-readable output", TRANSPORT_PUSH_PORCELAIN), |
365 | | - OPT_BIT('f', "force", &flags, "force updates", TRANSPORT_PUSH_FORCE), |
366 | | - { OPTION_CALLBACK, 0, "recurse-submodules", &flags, "check", |
367 | | - "controls recursive pushing of submodules", |
| 361 | + OPT_BOOLEAN( 0, "delete", &deleterefs, N_("delete refs")), |
| 362 | + OPT_BOOLEAN( 0 , "tags", &tags, N_("push tags (can't be used with --all or --mirror)")), |
| 363 | + OPT_BIT('n' , "dry-run", &flags, N_("dry run"), TRANSPORT_PUSH_DRY_RUN), |
| 364 | + OPT_BIT( 0, "porcelain", &flags, N_("machine-readable output"), TRANSPORT_PUSH_PORCELAIN), |
| 365 | + OPT_BIT('f', "force", &flags, N_("force updates"), TRANSPORT_PUSH_FORCE), |
| 366 | + { OPTION_CALLBACK, 0, "recurse-submodules", &flags, N_("check"), |
| 367 | + N_("controls recursive pushing of submodules"), |
368 | 368 | PARSE_OPT_OPTARG, option_parse_recurse_submodules }, |
369 | | - OPT_BOOLEAN( 0 , "thin", &thin, "use thin pack"), |
370 | | - OPT_STRING( 0 , "receive-pack", &receivepack, "receive-pack", "receive pack program"), |
371 | | - OPT_STRING( 0 , "exec", &receivepack, "receive-pack", "receive pack program"), |
372 | | - OPT_BIT('u', "set-upstream", &flags, "set upstream for git pull/status", |
| 369 | + OPT_BOOLEAN( 0 , "thin", &thin, N_("use thin pack")), |
| 370 | + OPT_STRING( 0 , "receive-pack", &receivepack, "receive-pack", N_("receive pack program")), |
| 371 | + OPT_STRING( 0 , "exec", &receivepack, "receive-pack", N_("receive pack program")), |
| 372 | + OPT_BIT('u', "set-upstream", &flags, N_("set upstream for git pull/status"), |
373 | 373 | TRANSPORT_PUSH_SET_UPSTREAM), |
374 | | - OPT_BOOL(0, "progress", &progress, "force progress reporting"), |
375 | | - OPT_BIT(0, "prune", &flags, "prune locally removed refs", |
| 374 | + OPT_BOOL(0, "progress", &progress, N_("force progress reporting")), |
| 375 | + OPT_BIT(0, "prune", &flags, N_("prune locally removed refs"), |
376 | 376 | TRANSPORT_PUSH_PRUNE), |
377 | 377 | OPT_END() |
378 | 378 | }; |
|
0 commit comments