|
10 | 10 | #include "parse-options.h"
|
11 | 11 |
|
12 | 12 | static const char * const push_usage[] = {
|
13 |
| - "git push [--all | --mirror] [--dry-run] [--porcelain] [--tags] [--receive-pack=<git-receive-pack>] [--repo=<repository>] [-f | --force] [-v] [<repository> <refspec>...]", |
| 13 | + "git push [--all | --mirror] [-n | --dry-run] [--porcelain] [--tags] [--receive-pack=<git-receive-pack>] [--repo=<repository>] [-f | --force] [-v] [<repository> <refspec>...]", |
14 | 14 | NULL,
|
15 | 15 | };
|
16 | 16 |
|
@@ -182,7 +182,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
|
182 | 182 | OPT_BIT( 0 , "mirror", &flags, "mirror all refs",
|
183 | 183 | (TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE)),
|
184 | 184 | OPT_BOOLEAN( 0 , "tags", &tags, "push tags"),
|
185 |
| - OPT_BIT( 0 , "dry-run", &flags, "dry run", TRANSPORT_PUSH_DRY_RUN), |
| 185 | + OPT_BIT('n' , "dry-run", &flags, "dry run", TRANSPORT_PUSH_DRY_RUN), |
186 | 186 | OPT_BIT( 0, "porcelain", &flags, "machine-readable output", TRANSPORT_PUSH_PORCELAIN),
|
187 | 187 | OPT_BIT('f', "force", &flags, "force updates", TRANSPORT_PUSH_FORCE),
|
188 | 188 | OPT_BOOLEAN( 0 , "thin", &thin, "use thin pack"),
|
|
0 commit comments