|
20 | 20 | #include "thread-utils.h" |
21 | 21 |
|
22 | 22 | static const char *pack_usage[] = { |
23 | | - "git pack-objects --stdout [options...] [< ref-list | < object-list]", |
24 | | - "git pack-objects [options...] base-name [< ref-list | < object-list]", |
| 23 | + N_("git pack-objects --stdout [options...] [< ref-list | < object-list]"), |
| 24 | + N_("git pack-objects [options...] base-name [< ref-list | < object-list]"), |
25 | 25 | NULL |
26 | 26 | }; |
27 | 27 |
|
@@ -2445,67 +2445,67 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix) |
2445 | 2445 | int rev_list_unpacked = 0, rev_list_all = 0, rev_list_reflog = 0; |
2446 | 2446 | struct option pack_objects_options[] = { |
2447 | 2447 | OPT_SET_INT('q', "quiet", &progress, |
2448 | | - "do not show progress meter", 0), |
| 2448 | + N_("do not show progress meter"), 0), |
2449 | 2449 | OPT_SET_INT(0, "progress", &progress, |
2450 | | - "show progress meter", 1), |
| 2450 | + N_("show progress meter"), 1), |
2451 | 2451 | OPT_SET_INT(0, "all-progress", &progress, |
2452 | | - "show progress meter during object writing phase", 2), |
| 2452 | + N_("show progress meter during object writing phase"), 2), |
2453 | 2453 | OPT_BOOL(0, "all-progress-implied", |
2454 | 2454 | &all_progress_implied, |
2455 | | - "similar to --all-progress when progress meter is shown"), |
2456 | | - { OPTION_CALLBACK, 0, "index-version", NULL, "version[,offset]", |
2457 | | - "write the pack index file in the specified idx format version", |
| 2455 | + N_("similar to --all-progress when progress meter is shown")), |
| 2456 | + { OPTION_CALLBACK, 0, "index-version", NULL, N_("version[,offset]"), |
| 2457 | + N_("write the pack index file in the specified idx format version"), |
2458 | 2458 | 0, option_parse_index_version }, |
2459 | 2459 | OPT_ULONG(0, "max-pack-size", &pack_size_limit, |
2460 | | - "maximum size of each output pack file"), |
| 2460 | + N_("maximum size of each output pack file")), |
2461 | 2461 | OPT_BOOL(0, "local", &local, |
2462 | | - "ignore borrowed objects from alternate object store"), |
| 2462 | + N_("ignore borrowed objects from alternate object store")), |
2463 | 2463 | OPT_BOOL(0, "incremental", &incremental, |
2464 | | - "ignore packed objects"), |
| 2464 | + N_("ignore packed objects")), |
2465 | 2465 | OPT_INTEGER(0, "window", &window, |
2466 | | - "limit pack window by objects"), |
| 2466 | + N_("limit pack window by objects")), |
2467 | 2467 | OPT_ULONG(0, "window-memory", &window_memory_limit, |
2468 | | - "limit pack window by memory in addition to object limit"), |
| 2468 | + N_("limit pack window by memory in addition to object limit")), |
2469 | 2469 | OPT_INTEGER(0, "depth", &depth, |
2470 | | - "maximum length of delta chain allowed in the resulting pack"), |
| 2470 | + N_("maximum length of delta chain allowed in the resulting pack")), |
2471 | 2471 | OPT_BOOL(0, "reuse-delta", &reuse_delta, |
2472 | | - "reuse existing deltas"), |
| 2472 | + N_("reuse existing deltas")), |
2473 | 2473 | OPT_BOOL(0, "reuse-object", &reuse_object, |
2474 | | - "reuse existing objects"), |
| 2474 | + N_("reuse existing objects")), |
2475 | 2475 | OPT_BOOL(0, "delta-base-offset", &allow_ofs_delta, |
2476 | | - "use OFS_DELTA objects"), |
| 2476 | + N_("use OFS_DELTA objects")), |
2477 | 2477 | OPT_INTEGER(0, "threads", &delta_search_threads, |
2478 | | - "use threads when searching for best delta matches"), |
| 2478 | + N_("use threads when searching for best delta matches")), |
2479 | 2479 | OPT_BOOL(0, "non-empty", &non_empty, |
2480 | | - "do not create an empty pack output"), |
| 2480 | + N_("do not create an empty pack output")), |
2481 | 2481 | OPT_BOOL(0, "revs", &use_internal_rev_list, |
2482 | | - "read revision arguments from standard input"), |
| 2482 | + N_("read revision arguments from standard input")), |
2483 | 2483 | { OPTION_SET_INT, 0, "unpacked", &rev_list_unpacked, NULL, |
2484 | | - "limit the objects to those that are not yet packed", |
| 2484 | + N_("limit the objects to those that are not yet packed"), |
2485 | 2485 | PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, 1 }, |
2486 | 2486 | { OPTION_SET_INT, 0, "all", &rev_list_all, NULL, |
2487 | | - "include objects reachable from any reference", |
| 2487 | + N_("include objects reachable from any reference"), |
2488 | 2488 | PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, 1 }, |
2489 | 2489 | { OPTION_SET_INT, 0, "reflog", &rev_list_reflog, NULL, |
2490 | | - "include objects referred by reflog entries", |
| 2490 | + N_("include objects referred by reflog entries"), |
2491 | 2491 | PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, 1 }, |
2492 | 2492 | OPT_BOOL(0, "stdout", &pack_to_stdout, |
2493 | | - "output pack to stdout"), |
| 2493 | + N_("output pack to stdout")), |
2494 | 2494 | OPT_BOOL(0, "include-tag", &include_tag, |
2495 | | - "include tag objects that refer to objects to be packed"), |
| 2495 | + N_("include tag objects that refer to objects to be packed")), |
2496 | 2496 | OPT_BOOL(0, "keep-unreachable", &keep_unreachable, |
2497 | | - "keep unreachable objects"), |
2498 | | - { OPTION_CALLBACK, 0, "unpack-unreachable", NULL, "time", |
2499 | | - "unpack unreachable objects newer than <time>", |
| 2497 | + N_("keep unreachable objects")), |
| 2498 | + { OPTION_CALLBACK, 0, "unpack-unreachable", NULL, N_("time"), |
| 2499 | + N_("unpack unreachable objects newer than <time>"), |
2500 | 2500 | PARSE_OPT_OPTARG, option_parse_unpack_unreachable }, |
2501 | 2501 | OPT_BOOL(0, "thin", &thin, |
2502 | | - "create thin packs"), |
| 2502 | + N_("create thin packs")), |
2503 | 2503 | OPT_BOOL(0, "honor-pack-keep", &ignore_packed_keep, |
2504 | | - "ignore packs that have companion .keep file"), |
| 2504 | + N_("ignore packs that have companion .keep file")), |
2505 | 2505 | OPT_INTEGER(0, "compression", &pack_compression_level, |
2506 | | - "pack compression level"), |
| 2506 | + N_("pack compression level")), |
2507 | 2507 | OPT_SET_INT(0, "keep-true-parents", &grafts_replace_parents, |
2508 | | - "do not hide commits by grafts", 0), |
| 2508 | + N_("do not hide commits by grafts"), 0), |
2509 | 2509 | OPT_END(), |
2510 | 2510 | }; |
2511 | 2511 |
|
|
0 commit comments