|
22 | 22 | #include "utf8.h" |
23 | 23 | #include "userdiff.h" |
24 | 24 |
|
25 | | -static char blame_usage[] = "git blame [options] [rev-opts] [rev] [--] file"; |
| 25 | +static char blame_usage[] = N_("git blame [options] [rev-opts] [rev] [--] file"); |
26 | 26 |
|
27 | 27 | static const char *blame_opt_usage[] = { |
28 | 28 | blame_usage, |
29 | 29 | "", |
30 | | - "[rev-opts] are documented in git-rev-list(1)", |
| 30 | + N_("[rev-opts] are documented in git-rev-list(1)"), |
31 | 31 | NULL |
32 | 32 | }; |
33 | 33 |
|
@@ -2313,27 +2313,27 @@ int cmd_blame(int argc, const char **argv, const char *prefix) |
2313 | 2313 | static const char *revs_file = NULL; |
2314 | 2314 | static const char *contents_from = NULL; |
2315 | 2315 | static const struct option options[] = { |
2316 | | - OPT_BOOLEAN(0, "incremental", &incremental, "Show blame entries as we find them, incrementally"), |
2317 | | - OPT_BOOLEAN('b', NULL, &blank_boundary, "Show blank SHA-1 for boundary commits (Default: off)"), |
2318 | | - OPT_BOOLEAN(0, "root", &show_root, "Do not treat root commits as boundaries (Default: off)"), |
2319 | | - OPT_BOOLEAN(0, "show-stats", &show_stats, "Show work cost statistics"), |
2320 | | - OPT_BIT(0, "score-debug", &output_option, "Show output score for blame entries", OUTPUT_SHOW_SCORE), |
2321 | | - OPT_BIT('f', "show-name", &output_option, "Show original filename (Default: auto)", OUTPUT_SHOW_NAME), |
2322 | | - OPT_BIT('n', "show-number", &output_option, "Show original linenumber (Default: off)", OUTPUT_SHOW_NUMBER), |
2323 | | - OPT_BIT('p', "porcelain", &output_option, "Show in a format designed for machine consumption", OUTPUT_PORCELAIN), |
2324 | | - OPT_BIT(0, "line-porcelain", &output_option, "Show porcelain format with per-line commit information", OUTPUT_PORCELAIN|OUTPUT_LINE_PORCELAIN), |
2325 | | - OPT_BIT('c', NULL, &output_option, "Use the same output mode as git-annotate (Default: off)", OUTPUT_ANNOTATE_COMPAT), |
2326 | | - OPT_BIT('t', NULL, &output_option, "Show raw timestamp (Default: off)", OUTPUT_RAW_TIMESTAMP), |
2327 | | - OPT_BIT('l', NULL, &output_option, "Show long commit SHA1 (Default: off)", OUTPUT_LONG_OBJECT_NAME), |
2328 | | - OPT_BIT('s', NULL, &output_option, "Suppress author name and timestamp (Default: off)", OUTPUT_NO_AUTHOR), |
2329 | | - OPT_BIT('e', "show-email", &output_option, "Show author email instead of name (Default: off)", OUTPUT_SHOW_EMAIL), |
2330 | | - OPT_BIT('w', NULL, &xdl_opts, "Ignore whitespace differences", XDF_IGNORE_WHITESPACE), |
2331 | | - OPT_BIT(0, "minimal", &xdl_opts, "Spend extra cycles to find better match", XDF_NEED_MINIMAL), |
2332 | | - OPT_STRING('S', NULL, &revs_file, "file", "Use revisions from <file> instead of calling git-rev-list"), |
2333 | | - OPT_STRING(0, "contents", &contents_from, "file", "Use <file>'s contents as the final image"), |
2334 | | - { OPTION_CALLBACK, 'C', NULL, &opt, "score", "Find line copies within and across files", PARSE_OPT_OPTARG, blame_copy_callback }, |
2335 | | - { OPTION_CALLBACK, 'M', NULL, &opt, "score", "Find line movements within and across files", PARSE_OPT_OPTARG, blame_move_callback }, |
2336 | | - OPT_CALLBACK('L', NULL, &bottomtop, "n,m", "Process only line range n,m, counting from 1", blame_bottomtop_callback), |
| 2316 | + OPT_BOOLEAN(0, "incremental", &incremental, N_("Show blame entries as we find them, incrementally")), |
| 2317 | + OPT_BOOLEAN('b', NULL, &blank_boundary, N_("Show blank SHA-1 for boundary commits (Default: off)")), |
| 2318 | + OPT_BOOLEAN(0, "root", &show_root, N_("Do not treat root commits as boundaries (Default: off)")), |
| 2319 | + OPT_BOOLEAN(0, "show-stats", &show_stats, N_("Show work cost statistics")), |
| 2320 | + OPT_BIT(0, "score-debug", &output_option, N_("Show output score for blame entries"), OUTPUT_SHOW_SCORE), |
| 2321 | + OPT_BIT('f', "show-name", &output_option, N_("Show original filename (Default: auto)"), OUTPUT_SHOW_NAME), |
| 2322 | + OPT_BIT('n', "show-number", &output_option, N_("Show original linenumber (Default: off)"), OUTPUT_SHOW_NUMBER), |
| 2323 | + OPT_BIT('p', "porcelain", &output_option, N_("Show in a format designed for machine consumption"), OUTPUT_PORCELAIN), |
| 2324 | + OPT_BIT(0, "line-porcelain", &output_option, N_("Show porcelain format with per-line commit information"), OUTPUT_PORCELAIN|OUTPUT_LINE_PORCELAIN), |
| 2325 | + OPT_BIT('c', NULL, &output_option, N_("Use the same output mode as git-annotate (Default: off)"), OUTPUT_ANNOTATE_COMPAT), |
| 2326 | + OPT_BIT('t', NULL, &output_option, N_("Show raw timestamp (Default: off)"), OUTPUT_RAW_TIMESTAMP), |
| 2327 | + OPT_BIT('l', NULL, &output_option, N_("Show long commit SHA1 (Default: off)"), OUTPUT_LONG_OBJECT_NAME), |
| 2328 | + OPT_BIT('s', NULL, &output_option, N_("Suppress author name and timestamp (Default: off)"), OUTPUT_NO_AUTHOR), |
| 2329 | + OPT_BIT('e', "show-email", &output_option, N_("Show author email instead of name (Default: off)"), OUTPUT_SHOW_EMAIL), |
| 2330 | + OPT_BIT('w', NULL, &xdl_opts, N_("Ignore whitespace differences"), XDF_IGNORE_WHITESPACE), |
| 2331 | + OPT_BIT(0, "minimal", &xdl_opts, N_("Spend extra cycles to find better match"), XDF_NEED_MINIMAL), |
| 2332 | + OPT_STRING('S', NULL, &revs_file, N_("file"), N_("Use revisions from <file> instead of calling git-rev-list")), |
| 2333 | + OPT_STRING(0, "contents", &contents_from, N_("file"), N_("Use <file>'s contents as the final image")), |
| 2334 | + { OPTION_CALLBACK, 'C', NULL, &opt, N_("score"), N_("Find line copies within and across files"), PARSE_OPT_OPTARG, blame_copy_callback }, |
| 2335 | + { OPTION_CALLBACK, 'M', NULL, &opt, N_("score"), N_("Find line movements within and across files"), PARSE_OPT_OPTARG, blame_move_callback }, |
| 2336 | + OPT_CALLBACK('L', NULL, &bottomtop, N_("n,m"), N_("Process only line range n,m, counting from 1"), blame_bottomtop_callback), |
2337 | 2337 | OPT__ABBREV(&abbrev), |
2338 | 2338 | OPT_END() |
2339 | 2339 | }; |
|
0 commit comments