|
11 | 11 | * bundle supporting "fetch", "pull", and "ls-remote".
|
12 | 12 | */
|
13 | 13 |
|
14 |
| -static const char * const builtin_bundle_usage[] = { |
15 |
| - N_("git bundle create [<options>] <file> <git-rev-list args>"), |
16 |
| - N_("git bundle verify [<options>] <file>"), |
17 |
| - N_("git bundle list-heads <file> [<refname>...]"), |
18 |
| - N_("git bundle unbundle <file> [<refname>...]"), |
19 |
| - NULL |
| 14 | +#define BUILTIN_BUNDLE_CREATE_USAGE \ |
| 15 | + N_("git bundle create [<options>] <file> <git-rev-list args>") |
| 16 | +#define BUILTIN_BUNDLE_VERIFY_USAGE \ |
| 17 | + N_("git bundle verify [<options>] <file>") |
| 18 | +#define BUILTIN_BUNDLE_LIST_HEADS_USAGE \ |
| 19 | + N_("git bundle list-heads <file> [<refname>...]") |
| 20 | +#define BUILTIN_BUNDLE_UNBUNDLE_USAGE \ |
| 21 | + N_("git bundle unbundle <file> [<refname>...]") |
| 22 | + |
| 23 | +static char const * const builtin_bundle_usage[] = { |
| 24 | + BUILTIN_BUNDLE_CREATE_USAGE, |
| 25 | + BUILTIN_BUNDLE_VERIFY_USAGE, |
| 26 | + BUILTIN_BUNDLE_LIST_HEADS_USAGE, |
| 27 | + BUILTIN_BUNDLE_UNBUNDLE_USAGE, |
| 28 | + NULL, |
20 | 29 | };
|
21 | 30 |
|
22 | 31 | static const char * const builtin_bundle_create_usage[] = {
|
23 |
| - N_("git bundle create [<options>] <file> <git-rev-list args>"), |
| 32 | + BUILTIN_BUNDLE_CREATE_USAGE, |
24 | 33 | NULL
|
25 | 34 | };
|
26 | 35 |
|
27 | 36 | static const char * const builtin_bundle_verify_usage[] = {
|
28 |
| - N_("git bundle verify [<options>] <file>"), |
| 37 | + BUILTIN_BUNDLE_VERIFY_USAGE, |
29 | 38 | NULL
|
30 | 39 | };
|
31 | 40 |
|
32 | 41 | static const char * const builtin_bundle_list_heads_usage[] = {
|
33 |
| - N_("git bundle list-heads <file> [<refname>...]"), |
| 42 | + BUILTIN_BUNDLE_LIST_HEADS_USAGE, |
34 | 43 | NULL
|
35 | 44 | };
|
36 | 45 |
|
37 | 46 | static const char * const builtin_bundle_unbundle_usage[] = {
|
38 |
| - N_("git bundle unbundle <file> [<refname>...]"), |
| 47 | + BUILTIN_BUNDLE_UNBUNDLE_USAGE, |
39 | 48 | NULL
|
40 | 49 | };
|
41 | 50 |
|
|
0 commit comments