|
21 | 21 |
|
22 | 22 | #define INCLUDE_ALL_FILES 2
|
23 | 23 |
|
| 24 | +#define BUILTIN_STASH_LIST_USAGE \ |
| 25 | + N_("git stash list [<log-options>]") |
| 26 | +#define BUILTIN_STASH_SHOW_USAGE \ |
| 27 | + N_("git stash show [-u | --include-untracked | --only-untracked] [<diff-options>] [<stash>]") |
| 28 | +#define BUILTIN_STASH_DROP_USAGE \ |
| 29 | + N_("git stash drop [-q | --quiet] [<stash>]") |
| 30 | +#define BUILTIN_STASH_POP_USAGE \ |
| 31 | + N_("git stash pop [--index] [-q | --quiet] [<stash>]") |
| 32 | +#define BUILTIN_STASH_APPLY_USAGE \ |
| 33 | + N_("git stash apply [--index] [-q | --quiet] [<stash>]") |
| 34 | +#define BUILTIN_STASH_BRANCH_USAGE \ |
| 35 | + N_("git stash branch <branchname> [<stash>]") |
| 36 | +#define BUILTIN_STASH_STORE_USAGE \ |
| 37 | + N_("git stash store [(-m | --message) <message>] [-q | --quiet] <commit>") |
| 38 | +#define BUILTIN_STASH_PUSH_USAGE \ |
| 39 | + N_("git stash [push [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-q | --quiet]\n" \ |
| 40 | + " [-u | --include-untracked] [-a | --all] [(-m | --message) <message>]\n" \ |
| 41 | + " [--pathspec-from-file=<file> [--pathspec-file-nul]]\n" \ |
| 42 | + " [--] [<pathspec>...]]") |
| 43 | +#define BUILTIN_STASH_SAVE_USAGE \ |
| 44 | + N_("git stash save [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-q | --quiet]\n" \ |
| 45 | + " [-u | --include-untracked] [-a | --all] [<message>]") |
| 46 | +#define BUILTIN_STASH_CREATE_USAGE \ |
| 47 | + N_("git stash create [<message>]") |
| 48 | +#define BUILTIN_STASH_CLEAR_USAGE \ |
| 49 | + "git stash clear" |
| 50 | + |
24 | 51 | static const char * const git_stash_usage[] = {
|
25 |
| - N_("git stash list [<log-options>]"), |
26 |
| - N_("git stash show [<options>] [<stash>]"), |
27 |
| - N_("git stash drop [-q | --quiet] [<stash>]"), |
28 |
| - N_("git stash (pop | apply) [--index] [-q | --quiet] [<stash>]"), |
29 |
| - N_("git stash branch <branchname> [<stash>]"), |
30 |
| - "git stash clear", |
31 |
| - N_("git stash [push [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-q | --quiet]\n" |
32 |
| - " [-u | --include-untracked] [-a | --all] [(-m | --message) <message>]\n" |
33 |
| - " [--pathspec-from-file=<file> [--pathspec-file-nul]]\n" |
34 |
| - " [--] [<pathspec>...]]"), |
35 |
| - N_("git stash save [-p | --patch] [-S | --staged] [-k | --[no-]keep-index] [-q | --quiet]\n" |
36 |
| - " [-u | --include-untracked] [-a | --all] [<message>]"), |
| 52 | + BUILTIN_STASH_LIST_USAGE, |
| 53 | + BUILTIN_STASH_SHOW_USAGE, |
| 54 | + BUILTIN_STASH_DROP_USAGE, |
| 55 | + BUILTIN_STASH_POP_USAGE, |
| 56 | + BUILTIN_STASH_APPLY_USAGE, |
| 57 | + BUILTIN_STASH_BRANCH_USAGE, |
| 58 | + BUILTIN_STASH_PUSH_USAGE, |
| 59 | + BUILTIN_STASH_SAVE_USAGE, |
| 60 | + BUILTIN_STASH_CLEAR_USAGE, |
| 61 | + BUILTIN_STASH_CREATE_USAGE, |
| 62 | + BUILTIN_STASH_STORE_USAGE, |
37 | 63 | NULL
|
38 | 64 | };
|
39 | 65 |
|
40 | 66 | static const char * const git_stash_list_usage[] = {
|
41 |
| - N_("git stash list [<options>]"), |
| 67 | + BUILTIN_STASH_LIST_USAGE, |
42 | 68 | NULL
|
43 | 69 | };
|
44 | 70 |
|
45 | 71 | static const char * const git_stash_show_usage[] = {
|
46 |
| - N_("git stash show [<options>] [<stash>]"), |
| 72 | + BUILTIN_STASH_SHOW_USAGE, |
47 | 73 | NULL
|
48 | 74 | };
|
49 | 75 |
|
50 | 76 | static const char * const git_stash_drop_usage[] = {
|
51 |
| - N_("git stash drop [-q | --quiet] [<stash>]"), |
| 77 | + BUILTIN_STASH_DROP_USAGE, |
52 | 78 | NULL
|
53 | 79 | };
|
54 | 80 |
|
55 | 81 | static const char * const git_stash_pop_usage[] = {
|
56 |
| - N_("git stash pop [--index] [-q | --quiet] [<stash>]"), |
| 82 | + BUILTIN_STASH_POP_USAGE, |
57 | 83 | NULL
|
58 | 84 | };
|
59 | 85 |
|
60 | 86 | static const char * const git_stash_apply_usage[] = {
|
61 |
| - N_("git stash apply [--index] [-q | --quiet] [<stash>]"), |
| 87 | + BUILTIN_STASH_APPLY_USAGE, |
62 | 88 | NULL
|
63 | 89 | };
|
64 | 90 |
|
65 | 91 | static const char * const git_stash_branch_usage[] = {
|
66 |
| - N_("git stash branch <branchname> [<stash>]"), |
| 92 | + BUILTIN_STASH_BRANCH_USAGE, |
67 | 93 | NULL
|
68 | 94 | };
|
69 | 95 |
|
70 | 96 | static const char * const git_stash_clear_usage[] = {
|
71 |
| - "git stash clear", |
| 97 | + BUILTIN_STASH_CLEAR_USAGE, |
72 | 98 | NULL
|
73 | 99 | };
|
74 | 100 |
|
75 | 101 | static const char * const git_stash_store_usage[] = {
|
76 |
| - N_("git stash store [(-m | --message) <message>] [-q | --quiet] <commit>"), |
| 102 | + BUILTIN_STASH_STORE_USAGE, |
77 | 103 | NULL
|
78 | 104 | };
|
79 | 105 |
|
80 | 106 | static const char * const git_stash_push_usage[] = {
|
81 |
| - N_("git stash [push [-p | --patch] [-k | --[no-]keep-index] [-q | --quiet]\n" |
82 |
| - " [-u | --include-untracked] [-a | --all] [(-m | --message) <message>]\n" |
83 |
| - " [--] [<pathspec>...]]"), |
| 107 | + BUILTIN_STASH_PUSH_USAGE, |
84 | 108 | NULL
|
85 | 109 | };
|
86 | 110 |
|
87 | 111 | static const char * const git_stash_save_usage[] = {
|
88 |
| - N_("git stash save [-p | --patch] [-k | --[no-]keep-index] [-q | --quiet]\n" |
89 |
| - " [-u | --include-untracked] [-a | --all] [<message>]"), |
| 112 | + BUILTIN_STASH_SAVE_USAGE, |
90 | 113 | NULL
|
91 | 114 | };
|
92 | 115 |
|
|
0 commit comments